Fixed bugs and added hourly forecast
This commit is contained in:
2
main.go
2
main.go
@@ -46,7 +46,7 @@ func main() {
|
||||
})
|
||||
|
||||
http.HandleFunc("/forecast/", func(res http.ResponseWriter, req *http.Request) {
|
||||
controller.GetForecast(res, req, &cache.ForecastCache, &vars)
|
||||
controller.GetForecast(res, req, &cache.DailyForecastCache, &cache.HourlyForecastCache, &vars)
|
||||
})
|
||||
|
||||
http.HandleFunc("/moon", func(res http.ResponseWriter, req *http.Request) {
|
||||
|
||||
Reference in New Issue
Block a user