route /devices working in server.js