Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 447bcb3 commit 542337eCopy full SHA for 542337e
templates/app/server/api/user(auth)/index.js
@@ -4,7 +4,7 @@ import {Router} from 'express';
4
import * as controller from './user.controller';
5
import * as auth from '../../auth/auth.service';
6
7
-var router = new Router();
+var router = Router();
8
9
router.get('/', auth.hasRole('admin'), controller.index);
10
router.delete('/:id', auth.hasRole('admin'), controller.destroy);
0 commit comments