mirror of
https://github.com/wassname/talk.git
synced 2026-09-09 11:38:08 +08:00
First iteration of admin
This commit is contained in:
@@ -50,6 +50,9 @@ async function createTenantRouter(app: AppOptions, options: RouterOptions) {
|
||||
// Setup auth routes.
|
||||
router.use("/auth", createNewAuthRouter(app, options));
|
||||
|
||||
// Handle the admin handler.
|
||||
router.get("/admin", adminHandler);
|
||||
|
||||
// Tenant API
|
||||
router.use(
|
||||
"/graphql",
|
||||
@@ -154,8 +157,5 @@ export async function createRouter(app: AppOptions, options: RouterOptions) {
|
||||
// Handle the stream handler.
|
||||
router.get("/embed/stream", cacheHeadersMiddleware("1h"), streamHandler);
|
||||
|
||||
// Handle the stream handler.
|
||||
router.get("/admin", adminHandler);
|
||||
|
||||
return router;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user