February 2019
Intermediate to advanced
204 pages
4h 52m
English
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.
Read now
Unlock full access