mirror of
https://github.com/mmumshad/ansible-playable.git
synced 2025-03-09 23:38:54 +00:00
Initial Commit
This commit is contained in:
commit
c92f737237
273 changed files with 16964 additions and 0 deletions
16
server/api/user/index.js
Normal file
16
server/api/user/index.js
Normal file
|
@ -0,0 +1,16 @@
|
|||
'use strict';
|
||||
|
||||
import {Router} from 'express';
|
||||
import * as controller from './user.controller';
|
||||
import * as auth from '../../auth/auth.service';
|
||||
|
||||
var router = new Router();
|
||||
|
||||
router.get('/', auth.hasRole('admin'), controller.index);
|
||||
router.delete('/:id', auth.hasRole('admin'), controller.destroy);
|
||||
router.get('/me', auth.isAuthenticated(), controller.me);
|
||||
router.put('/:id/password', auth.isAuthenticated(), controller.changePassword);
|
||||
router.get('/:id', auth.isAuthenticated(), controller.show);
|
||||
router.post('/', controller.create);
|
||||
|
||||
module.exports = router;
|
Loading…
Add table
Add a link
Reference in a new issue