Fix #41: added user routes#43
Conversation
- added user routes to fetch all, fetch single, update, add and delete user. - added a centralized user fetching in frontend. Closes bsoc-bitbyte#41
✅ Deploy Preview for ydo-bsoc ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
|
I tried a few things like using uuid from the auth.users as a pk for user_id in the public.users, and a flask decorator to authnticate user and get the uid. I am not completely sure if i am correct in my implementations and assumptions. |
|
looks great, can you also create a route to get a specific user give a roll number? |
|
umm i think i misunderstood something prolly, so we needed a path to get roll number of a user and store it as ID? but i did that in the add user route. This is just an assumption, but can we not explicitly ask the user for roll number and take it in as ID anyways coz the add user route already handles it? |
|
The roll number can extracted using the mail id, since users will be allowed to login only the institute id. |
|
Good Job! @LightCreator1007 |
Overview
Essential Checklist