mirror of
https://scm.univ-tours.fr/22107988t/rappaurio-sae501_502.git
synced 2025-09-13 08:35:02 +02:00
changed the whole structure
This commit is contained in:
14
app-rappaurio/server/routes/auth.js
Normal file
14
app-rappaurio/server/routes/auth.js
Normal file
@@ -0,0 +1,14 @@
|
||||
const express = require('express');
|
||||
const authController = require('../controllers/auth');
|
||||
const router = express.Router();
|
||||
|
||||
|
||||
|
||||
router.post('/inscription' , authController.register);
|
||||
|
||||
router.post('/connexion' , authController.login);
|
||||
|
||||
router.get('/deconnexion' , authController.logout)
|
||||
|
||||
|
||||
module.exports = router ;
|
Reference in New Issue
Block a user