/var/www/p4ela.kz/server/delivery/api/routes
Edit: /var/www/p4ela.kz/server/delivery/api/routes/auth.router.js (621B)
const AuthController = require('../controllers/auth.controller')
const auth = require('../middleware/auth')
module.exports = ({ router, db }) => {
const authController = new AuthController({ db })
router.post('/api/auth/signin', authController.SignIn)
router.post('/api/auth/signup', authController.SignUp)
router.post('/api/auth/signout', auth, authController.SignOut)
router.post('/api/auth/refresh_token', authController.RefreshToken)
router.post('/api/auth/reset_password', authController.ResetPassword)
router.post('/api/auth/reset_password_confirm', authController.ResetPasswordConfirm)
return router
}