Revert auth changes

This commit is contained in:
Jori Lallo
2018-01-15 14:07:12 -08:00
parent 1586c5c208
commit 4c9bff478a
3 changed files with 8 additions and 11 deletions

View File

@@ -6,9 +6,8 @@ import { presentView } from '../presenters';
import { View, Document } from '../models';
const router = new Router();
router.use(auth());
router.post('views.list', async ctx => {
router.post('views.list', auth(), async ctx => {
const { id } = ctx.body;
ctx.assertPresent(id, 'id is required');
@@ -37,7 +36,7 @@ router.post('views.list', async ctx => {
};
});
router.post('views.create', async ctx => {
router.post('views.create', auth(), async ctx => {
const { id } = ctx.body;
ctx.assertPresent(id, 'id is required');