Add simple /api/auth implementation. Currently, all passwords are accepted and a login session is valid for 5 minutes.

Signed-off-by: DL6ER <dl6er@dl6er.de>
This commit is contained in:
DL6ER
2019-11-16 12:25:20 +01:00
parent f500466a1e
commit 0a3424bcff
10 changed files with 202 additions and 8 deletions
+6
View File
@@ -41,4 +41,10 @@ int api_dns_somelist(struct mg_connection *conn,
// Version method
int api_version(struct mg_connection *conn);
// Auth method
int api_auth(struct mg_connection *conn);
// Settings methods
int api_settings_web(struct mg_connection *conn);
#endif // API_H