parent
52e5b834d4
commit
b0256e4e9f
@ -0,0 +1,10 @@
|
||||
const express = require('express');
|
||||
const router = express.Router();
|
||||
const authController = require('../controllers/auth');
|
||||
const { protect } = require('../middlewares/auth');
|
||||
|
||||
router.post('/register', authController.register);
|
||||
router.post('/login', authController.login);
|
||||
router.get('/me', protect, authController.getMe);
|
||||
|
||||
module.exports = router;
|
Loading…
Reference in new issue