Mercurial
comparison mrjunejune/admin_api.h @ 264:04fee26ecce0
add authenticated JRPG conversation platform
Add reusable auth/session storage, owned conversation recovery, guest quotas, admin workflows, URL-routed conversation UI, mobile frame support, and parallel browser acceptance.
Co-authored-by: Copilot <[email protected]>
| author | MrJuneJune <me@mrjunejune.com> |
|---|---|
| date | Fri, 07 Aug 2026 07:34:12 -0700 |
| parents | |
| children |
comparison
equal
deleted
inserted
replaced
| 263:ee04e4e69fed | 264:04fee26ecce0 |
|---|---|
| 1 #ifndef MRJUNEJUNE_ADMIN_API_H | |
| 2 #define MRJUNEJUNE_ADMIN_API_H | |
| 3 | |
| 4 #include "dowa/dowa.h" | |
| 5 #include "seobeo/seobeo.h" | |
| 6 | |
| 7 /* Route paths */ | |
| 8 #define ADMIN_API_PAGE_PATH "/admin/users" | |
| 9 #define ADMIN_API_LIST_PATH "/api/admin/users" | |
| 10 #define ADMIN_API_PATCH_PATH "/api/admin/users/:id" | |
| 11 #define ADMIN_API_REVOKE_SESS_PATH "/api/admin/users/:id/sessions" | |
| 12 | |
| 13 /* Pagination defaults */ | |
| 14 #define ADMIN_API_DEFAULT_LIMIT 50 | |
| 15 #define ADMIN_API_MAX_LIMIT 100 | |
| 16 | |
| 17 /* | |
| 18 * Register all admin routes. Call after Auth_API_Init. | |
| 19 */ | |
| 20 void Admin_API_Register_Routes(void); | |
| 21 | |
| 22 #ifdef ADMIN_API_TEST_HOOKS | |
| 23 /* | |
| 24 * Direct handler entry-points for in-process testing. | |
| 25 * Only available when ADMIN_API_TEST_HOOKS is defined. | |
| 26 */ | |
| 27 Seobeo_Request_Entry *Admin_API_Test_Page_Handler( | |
| 28 Seobeo_Request_Entry *p_req, Dowa_Arena *p_arena); | |
| 29 Seobeo_Request_Entry *Admin_API_Test_List_Handler( | |
| 30 Seobeo_Request_Entry *p_req, Dowa_Arena *p_arena); | |
| 31 Seobeo_Request_Entry *Admin_API_Test_Create_Handler( | |
| 32 Seobeo_Request_Entry *p_req, Dowa_Arena *p_arena); | |
| 33 Seobeo_Request_Entry *Admin_API_Test_Update_Handler( | |
| 34 Seobeo_Request_Entry *p_req, Dowa_Arena *p_arena); | |
| 35 Seobeo_Request_Entry *Admin_API_Test_Revoke_Sessions_Handler( | |
| 36 Seobeo_Request_Entry *p_req, Dowa_Arena *p_arena); | |
| 37 #endif /* ADMIN_API_TEST_HOOKS */ | |
| 38 | |
| 39 #endif /* MRJUNEJUNE_ADMIN_API_H */ |