The route names are not standard RESTful paths. Instead of /getStatus we should have /status and groups of related routes should be nested. For example, instead of /getTemperature and /setTemperature we should have a GET route /temperature that gets the temperature and a POST or PUT route /temperature to set it.
The route names are not standard RESTful paths. Instead of
/getStatuswe should have/statusand groups of related routes should be nested. For example, instead of/getTemperatureand/setTemperaturewe should have a GET route/temperaturethat gets the temperature and a POST or PUT route/temperatureto set it.