Adding found

This commit is contained in:
Belén Curcio
2018-09-27 10:37:09 -03:00
parent 2f361d4437
commit 929fa8ca31
6 changed files with 13 additions and 60 deletions
+3 -3
View File
@@ -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") {