Added hooks api to routing

This commit is contained in:
Jori Lallo 2016-08-22 23:40:11 -07:00
parent 9cd42ba3c5
commit 402fb61e1c

View File

@ -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.