Closed MuhammadKhalilzadeh closed 1 month ago
Now with the template code for the Server side in hand, let implement the User model.
Inside the directory models/user.model.js, user model needs to be implemented.
models/user.model.js
Inside the directory routes/user.route.js, followings needs to be implemented. For now, routes are as below:
routes/user.route.js
User model Schema
Now with the template code for the Server side in hand, let implement the User model.
Inside the directory
models/user.model.js
, user model needs to be implemented.Inside the directory
routes/user.route.js
, followings needs to be implemented. For now, routes are as below:User model Schema