From 402fb61e1c25d44404b4e1fcb86cf890b226e5a7 Mon Sep 17 00:00:00 2001 From: Jori Lallo Date: Mon, 22 Aug 2016 23:40:11 -0700 Subject: [PATCH] Added hooks api to routing --- server/api/index.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/api/index.js b/server/api/index.js index 5d4d6f46..ac92836d 100644 --- a/server/api/index.js +++ b/server/api/index.js @@ -8,6 +8,7 @@ import auth from './auth'; import user from './user'; import collections from './collections'; import documents from './documents'; +import hooks from './hooks'; import validation from './validation'; import methodOverride from '../middlewares/methodOverride'; @@ -50,6 +51,7 @@ router.use('/', auth.routes()); router.use('/', user.routes()); router.use('/', collections.routes()); router.use('/', documents.routes()); +router.use('/', hooks.routes()); // Router is embedded in a Koa application wrapper, because koa-router does not // allow middleware to catch any routes which were not explicitly defined.