feat: add GET /api/status, GET /api/search; add LICENSE (MIT 2026 rmuxnet)
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user