add get cities handler and improve db schema

This commit is contained in:
2025-10-29 16:14:25 +01:00
parent 5560fad92e
commit a5a2c5e24d
4 changed files with 39 additions and 4 deletions
@@ -79,6 +79,7 @@ func (h *Handler) IngestExcel(w http.ResponseWriter, r *http.Request) {
}
func (h *Handler) GetCities(w http.ResponseWriter, r *http.Request) {
h.ToJSON(w, http.StatusOK, app.H{"cities": h.s.GetCities(r.Context())})
}
func (h *Handler) GetMeteoData(w http.ResponseWriter, r *http.Request) {