Mercurial > gemma
diff pkg/controllers/routes.go @ 1741:44398a8bdf94
Approved gauge measurements: Added a stub to upload a CSV file for parsing.
TODO: Implement the parsing and store the values in the DB.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 09 Jan 2019 18:26:52 +0100 |
parents | 73aab5f9a934 |
children | c11807dc6940 |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Wed Jan 09 17:28:41 2019 +0100 +++ b/pkg/controllers/routes.go Wed Jan 09 18:26:52 2019 +0100 @@ -172,6 +172,9 @@ api.Handle("/imports/soundingresult", waterwayAdmin( http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) + api.Handle("/imports/approvedgm", waterwayAdmin( + http.HandlerFunc(importApprovedGaugeMeasurements))).Methods(http.MethodPost) + api.Handle("/imports/bottleneck", waterwayAdmin(&JSONHandler{ Input: func() interface{} { return new(models.BottleneckImport) }, Handle: manualImport(imports.BNJobKind, importBottleneck),