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.