How to configure express router along with ES6?
Your api is currently set to /api/api/devices/:id
.
Remove the /api
from the router get definition:
router
.get('/devices/:id',function (req, res) {
Your api is currently set to /api/api/devices/:id
.
Remove the /api
from the router get definition:
router
.get('/devices/:id',function (req, res) {