by Anastiuk
if use asdf
asdf install nodejs lts
Command for start server by:
node index
We have:
- getUsers /users
- createUser /users (abstract create)
- updateUser /users/id (abstract update)
- deleteUser /users/id (abstract delete)
3)During the implementation, the MVC pattern was used. The part responsible for the data is located in the Model directory. The part responsible for interpreting user actions in the Controller directory.
else if (req.url === "URLPATH" && req.method === "METHOD") { Controller(req, res) }