23 #ifndef _LIBS_WEBVIEW_REST_API_MANAGER_H_ 24 #define _LIBS_WEBVIEW_REST_API_MANAGER_H_ 26 #include <core/threading/mutex.h> 50 std::map<std::string, WebviewRestApi *> apis_;
Webview REST API component.
WebviewRestApiManager()
Constructor.
Fawkes library namespace.
WebviewRestApi * get_api(std::string &name)
Find API by name.
void unregister_api(WebviewRestApi *api)
Remove a request processor.
void register_api(WebviewRestApi *api)
Add a REST API.
~WebviewRestApiManager()
Destructor.
Mutex & mutex()
Get internal mutex.
Mutex mutual exclusion lock.