Add preflight endpoint

This commit is contained in:
Samer Albahra
2019-03-01 00:29:15 -06:00
parent aa5b6fb9ba
commit 3437d9e888

View File

@@ -18,6 +18,7 @@ app.get( /weather(\d+)\.py/, weather.getWeather );
app.get( /(\d+)/, weather.getWeather );
// Handle requests matching /weatherData
app.options( /weatherData/, cors() );
app.get( /weatherData/, cors(), weather.showWeatherData );
app.get( "/", function( req, res ) {