diff --git a/README.md b/README.md index 35a443a..ecb7ded 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@

ABI Deployment Thesis - Access Control

-Welcome to the access-control repository! This project is a key part of a master's thesis at the University of Minho. It's a Proof of Concept for a proposed architecture designed to deploy and integrate intelligent models within ABI (Adaptive Business Intelligence) systems. +Welcome to the access-control repository! This project is a key part of a master's thesis at the University of Minho. It's a Proof of Concept for a proposed architecture designed to deploy and integrate intelligent models within Adaptive Business Intelligence (ABI) systems. **This repository provides the microservice responsible for user management and authentication.** diff --git a/config/mongodb.js b/config/mongodb.js index ad392e7..4f7ead0 100644 --- a/config/mongodb.js +++ b/config/mongodb.js @@ -14,7 +14,7 @@ const con = async function () { const init = async function () { try { const admin = await new User({ - _id: new mongoose.Types.ObjectId(), + _id: new mongoose.Types.ObjectId("66c8d271f5b68d63c5a232c1"), email: 'admin@email.com', password: await bcrypt.hashString('admin'), name: 'admin' diff --git a/http/routes/user.routes.js b/http/routes/user.routes.js index bc415fe..73dccc8 100644 --- a/http/routes/user.routes.js +++ b/http/routes/user.routes.js @@ -3,9 +3,9 @@ const userController = require('../controllers/user.controller') const { isAuthenticated } = require('../middleware') const validator = require('../validator') -router.get('/user/:id', isAuthenticated, validator.getUserById, userController.getUserById) -router.get('/user-by-email/:email', isAuthenticated, validator.getUserByEmail, userController.getUserByEmail) -router.post('/user', validator.saveUser, userController.saveUser) -router.put('/delete/user', isAuthenticated, validator.deleteUser, userController.deleteUser) +router.get('/users/:id', isAuthenticated, validator.getUserById, userController.getUserById) +router.get('/users-by-email/:email', isAuthenticated, validator.getUserByEmail, userController.getUserByEmail) +router.post('/users', validator.saveUser, userController.saveUser) +//router.put('/delete/users', isAuthenticated, validator.deleteUser, userController.deleteUser) // Requires implementation of user roles/permissions module.exports = router \ No newline at end of file