diff pkg/controllers/routes.go @ 5718:3d497077f888 uploadwg

Implemented direct file upload as alternative import method for WG. For testing and data corrections it is useful to be able to import waterway gauges data directly by uploading a xml file.
author Sascha Wilde <wilde@sha-bang.de>
date Thu, 18 Apr 2024 19:23:19 +0200
parents 6270951dda28
children
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Thu Mar 21 08:19:21 2024 +0100
+++ b/pkg/controllers/routes.go	Thu Apr 18 19:23:19 2024 +0200
@@ -234,6 +234,9 @@
 	api.Handle("/imports/ugm", waterwayAdmin(
 		importUploadedGaugeMeasurement())).Methods(http.MethodPost)
 
+	api.Handle("/imports/uwg", waterwayAdmin(
+		importUploadedWaterwayGauge())).Methods(http.MethodPost)
+
 	api.Handle("/imports/stsh", sysAdmin(
 		importUploadedStretchShape())).Methods(http.MethodPost)