|
Csilk 0.2.1
A lightweight, high-performance C HTTP web framework
|
Unified administration and monitoring controller for the csilk framework. More...


Go to the source code of this file.
Functions | |
| void | csilk_admin_serve (csilk_app_t *app, const char *path) |
| Register administration routes to an application. | |
| void | csilk_admin_serve_secure (csilk_app_t *app, const char *path, csilk_handler_t auth_middleware) |
| Register protected administration routes to an application. | |
Unified administration and monitoring controller for the csilk framework.
Provides a web-based dashboard for real-time observability of HTTP metrics, AI Workflows, and the Internal Message Queue.
| void csilk_admin_serve | ( | csilk_app_t * | app, |
| const char * | path | ||
| ) |
Register administration routes to an application.
This function registers several routes under the given path:
| app | The application handle. |
| path | The base URL path for the admin panel (e.g., "/admin"). |
| void csilk_admin_serve_secure | ( | csilk_app_t * | app, |
| const char * | app_path, | ||
| csilk_handler_t | auth_middleware | ||
| ) |
Register protected administration routes to an application.
Similar to csilk_admin_serve, but wraps all admin routes in the provided auth_middleware. This ensures that the dashboard, stats, and WebSocket endpoints are only accessible to authorized users.
| app | The application handle. |
| path | The base URL path for the admin panel. |
| auth_middleware | The middleware to use for authentication. |
Register protected administration routes to an application.
This implementation creates a new route group for the admin panel, applying an optional authentication middleware. This ensures that sensitive metrics and real-time data are only accessible to authorized users.
| app | The high-level application handle. |
| app_path | The base URL path for the admin panel (e.g., "/admin"). |
| auth_middleware | Optional handler function for authentication. |