Add support for API without using old Python URL
This commit is contained in:
@@ -22,6 +22,7 @@ mongoose.connection.on( "error", function() {
|
||||
// weather adjustment method selector.
|
||||
// This endpoint is considered deprecated and supported for prior firmware
|
||||
app.get( /weather(\d+)\.py/, weather.getWeather );
|
||||
app.get( /(\d+)/, weather.getWeather );
|
||||
|
||||
// Handle 404 error
|
||||
app.use( function( req, res ) {
|
||||
|
||||
Reference in New Issue
Block a user