mirror of
https://github.com/wassname/talk.git
synced 2026-08-11 11:27:10 +08:00
Adding found
This commit is contained in:
@@ -50,9 +50,6 @@ 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",
|
||||
@@ -131,6 +128,9 @@ export async function createRouter(app: AppOptions, options: RouterOptions) {
|
||||
// Create a router.
|
||||
const router = express.Router();
|
||||
|
||||
// Handle the admin handler.
|
||||
router.get("/admin", adminHandler);
|
||||
|
||||
router.use("/api", nocacheMiddleware, await createAPIRouter(app, options));
|
||||
|
||||
if (app.config.get("env") === "development") {
|
||||
|
||||
Reference in New Issue
Block a user