Other endpoints
In addition to these endpoints, we will need other endpoints. As mentioned in Table 8.1, we require endpoints to delete a user.Â
Without looking into the completed solutions, try to complete the following endpoints:Â
routerAuth.delete('/users/:id', User.destroy); router.get('/practitioners', Practitioner.index); routerAuth.post('/practitioners', Practitioner.create); routerAuth.put('/practitioners/:id', Practitioner.update); routerAuth.delete('/practitioners/:id', Practitioner.destroy);
If you encounter any problems, try to look into the solution and compare it with your solution.Â