vidly-api-node
vidly-api-node copied to clipboard
The auth backend is missing for me
There are three collections in my vidly database: Movies, Genres and users but auth is missing.
How to add this collection?
http://localhost:3900/api/auth
Auth in this case is not a collection, "/auth" is just an endpoint. The backend server "vidly-api-node", handles the request to that api path.
In fact, auth api and authService.js, handle login and logout, and the only place where user info (email, pass) is, is in users collection. When you want to make an user admin, you add this attribute to the user collection.
Check out the next lesson.