![]() |
Mantis App v0.1.13
|
Manages application settings. More...
#include <settings.h>
Public Member Functions | |
SettingsUnit ()=default | |
bool | setupRoutes () |
Initialize and set up routes for fetching settings data. | |
void | migrate () |
Initialize migration, create base data for setting fields. | |
bool | hasAccess (const Request &req, Response &res, Context &ctx) |
Evaluate if request is authenticated and has permission to access this route. | |
json & | configs () |
Get the current config data instance. | |
Manages application settings.
|
default |
json & mantis::SettingsUnit::configs | ( | ) |
Get the current config data instance.
Evaluate if request is authenticated and has permission to access this route.
This route is exclusive to admin login only!
req | HTTP request |
res | HTTP response |
ctx | HTTP context |
true
if access is granted, else, false
void mantis::SettingsUnit::migrate | ( | ) |
Initialize migration, create base data for setting fields.
bool mantis::SettingsUnit::setupRoutes | ( | ) |
Initialize and set up routes for fetching settings data.
true
if setting up routes succeeded.