all setup with jwt and bcrypt with whole file structure with auth middleware and login
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
const express = require('express'),
|
||||
router = express.Router(),
|
||||
checkAuth = require('../middleware/check-auth');
|
||||
|
||||
const auth = require('../controllers/auth.controller.js');
|
||||
|
||||
// Check database for donor
|
||||
router.post('/donor/login', auth.login);
|
||||
|
||||
module.exports = router;
|
||||
Reference in New Issue
Block a user