12 lines
312 B
Go
12 lines
312 B
Go
package meteo
|
|
|
|
import "net/http"
|
|
|
|
func RegisterRoutes(mux *http.ServeMux, handler *Handler) {
|
|
mux.HandleFunc("POST /ingest/csv", handler.IngestCSV)
|
|
mux.HandleFunc("POST /ingest/excel", handler.IngestExcel)
|
|
|
|
mux.HandleFunc("GET /cities", handler.GetCities)
|
|
mux.HandleFunc("GET /data", handler.GetMeteoData)
|
|
}
|