Csilk 0.2.1
A lightweight, high-performance C HTTP web framework
Loading...
Searching...
No Matches
admin.h
Go to the documentation of this file.
1
10#ifndef CSILK_ADMIN_H
11#define CSILK_ADMIN_H
12
13#include "csilk/app/app.h"
14#include "csilk/csilk.h"
15
29void csilk_admin_serve(csilk_app_t* app, const char* path);
30
42void csilk_admin_serve_secure(csilk_app_t* app, const char* path, csilk_handler_t auth_middleware);
43
44#endif /* CSILK_ADMIN_H */
void csilk_admin_serve_secure(csilk_app_t *app, const char *path, csilk_handler_t auth_middleware)
Register protected administration routes to an application.
Definition admin.c:223
void csilk_admin_serve(csilk_app_t *app, const char *path)
Register administration routes to an application.
Definition admin.c:205
High-performance C web framework — main public API header.
void(* csilk_handler_t)(csilk_ctx_t *c)
Function pointer for route handlers and middleware.
Definition csilk.h:120