How to restart the node server. From the terminal where you start the server, you will get a stack trace. or if it returns an error, you can simply see it on the screen of your browser where the request came from.
- , Linux Osx, - .

.
. , .
-, js routes.js, :
var express = require('express');
var router = express.Router();`
router.post('/user/', controllers.users.create);
node, app.js
:
router.<method>('<route>',<function(req, res, next){}> ) ;
, , "nodejs/health/check" , api: :
router.get('nodejs/health/check', checkHealth(req, res){
console.log("output something");
res.send("Outputed Something")
} ) ;
router - -.
checkHealth - , , .