Framework update.

This commit is contained in:
stephb9959
2022-05-19 16:09:28 -07:00
parent 428639c879
commit 4abec884bf
5 changed files with 30 additions and 5 deletions

View File

@@ -662,4 +662,11 @@ namespace OpenWifi {
}
}
template <typename DBType> void ReturnFieldList(DBType & DB, RESTAPIHandler &H) {
Types::StringVec Fields;
DB.GetFieldNames(Fields);
Poco::JSON::Object Answer;
RESTAPI_utils::field_to_json(Answer,"list",Fields);
return H.ReturnObject(Answer);
}
}