For this issue, please make the rudimentary UserRegistration routes. This will entail making the index.js file like before. The following routes should be implemented
GET /api/user_registration
POST /api/user_registration
GET /api/user_registration/:userid
PUT /api/user_registration/:id
DELETE /api/user_registration/:userid
We should probably find UserRegistrations not by the ID of the registration, but by the user since it is heavily tied to one particular user (hence the routes above).
As we are refactoring a lot of the server side to use new models and such, we will look to split the User model into two models:
For reference, this is the preliminary model in mind:
For this issue, please make the rudimentary UserRegistration routes. This will entail making the
index.js
file like before. The following routes should be implementedGET /api/user_registration
POST /api/user_registration
GET /api/user_registration/:userid
PUT /api/user_registration/:id
DELETE /api/user_registration/:userid
We should probably find UserRegistrations not by the ID of the registration, but by the user since it is heavily tied to one particular user (hence the routes above).