feat: add GET /api/status, GET /api/search; add LICENSE (MIT 2026 rmuxnet)

This commit is contained in:
2026-06-09 01:59:27 +02:00
parent fd1c6dc28b
commit 52052dd51f
4 changed files with 128 additions and 0 deletions
+2
View File
@@ -22,6 +22,8 @@ void *handle_conn(void *arg) {
else if (!strcmp(req.path,"/downloads")) handle_downloads(fd);
else if (!strcmp(req.path,"/api/downloads")) handle_api_downloads(fd);
else if (!strcmp(req.path,"/api/notifications")) handle_api_notifications(fd);
else if (!strcmp(req.path,"/api/status")) handle_api_status(fd);
else if (!strcmp(req.path,"/api/search")) handle_api_search(fd, req.query);
else {
/* try static JS files */
send_static_js(fd, req.path);