When I want to access a specific page, I want to be able to validate the access with my the Role that my User has so I can access that page.
Create an endpoint using nodejs, knex which can retrieve the ROLE of a specific USER. So you have to use an SELECT statement to read it from the database using knex, check database diagram for table references for which fields can be retrieved on db diagram available on the README file.
When I want to access a specific page, I want to be able to validate the access with my the Role that my User has so I can access that page.
Create an endpoint using nodejs, knex which can retrieve the ROLE of a specific USER. So you have to use an SELECT statement to read it from the database using knex, check database diagram for table references for which fields can be retrieved on db diagram available on the README file.
Add this endpoint to Swagger on https://github.com/HackYourFuture-CPH/FP-class11/blob/develop/src/server/config/swagger.json