RESTful API design with Node.js
Adnan Rahić
4.2K52

Follow your blog and I found this error:

<!DOCTYPE html>
<html lang="en">
 <head>
 <meta charset="utf-8">
 <title>Error</title>
 </head>
 <body>
 <pre>Cannot POST /users</pre>
 </body>
</html>

My directory structure is as follows:

Restapi(root directory)

— User(directory)

— — User.js

— — UserController.js

— app.js

— db.js

— server.js

Please guide me to solve this otherwise It is awesome.

Thanks

One clap, two clap, three clap, forty?

By clapping more or less, you can signal to us which stories really stand out.