9#include <nlohmann/json.hpp>
13 using json = nlohmann::json;
62 json initSettingsConfig();
67 void setupConfigRoutes();
73 const std::string __class_name__ =
"mantis::SettingsUnit";
Manages application settings.
Definition settings.h:21
void migrate()
Initialize migration, create base data for setting fields.
Definition settings.cpp:37
bool setupRoutes()
Initialize and set up routes for fetching settings data.
Definition settings.cpp:19
json & configs()
Get the current config data instance.
Definition settings.cpp:187
bool hasAccess(const Request &req, Response &res, Context &ctx)
Evaluate if request is authenticated and has permission to access this route.
Definition settings.cpp:77
Wrapper around http-lib to add middleware support and context values to be passed from middlewares up...
nlohmann::json json
Definition mantis.h:35
router.h
Definition app.h:30
nlohmann::json json
Shorten JSON namespace.
Definition crud.h:14
httplib::Response Response
Shorthand for httplib::Response
Definition http.h:121
httplib::Request Request
Shorthand for httplib::Request
Definition http.h:118