First iteration of admin

This commit is contained in:
Belén Curcio
2018-09-25 15:09:43 -03:00
parent 5695bee776
commit bbf98d0b67
9 changed files with 132 additions and 9 deletions
+3 -3
View File
@@ -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;
}