mirror of
https://gitlab.com/little-lines/backend.git
synced 2024-11-13 00:38:54 +00:00
17 lines
No EOL
489 B
JavaScript
17 lines
No EOL
489 B
JavaScript
const express = require('express');
|
|
const router = express.Router();
|
|
const { getAllUser,
|
|
createUser,
|
|
deleteUser,
|
|
updateUser,
|
|
loginUser,
|
|
logoutUser} = require('../controllers/userController');
|
|
|
|
router.route('/').get(getAllUser);
|
|
router.route('/create').post(createUser);
|
|
router.route('/delete/:id').delete(deleteUser);
|
|
router.route('/update/:id').put(updateUser);
|
|
router.route('/login').post(loginUser);
|
|
router.route('/logout').get(logoutUser);
|
|
|
|
module.exports = router; |