Mercurial > gemma
comparison pkg/controllers/routes.go @ 1677:53304db85888
Waterway axis import: Added route for manual import.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Wed, 26 Dec 2018 10:46:17 +0100 |
parents | aaa05d3c4aac |
children | cdc8933949f2 |
comparison
equal
deleted
inserted
replaced
1676:4407ecaa2192 | 1677:53304db85888 |
---|---|
187 Input: func() interface{} { return new(models.FairwayAvailabilityImport) }, | 187 Input: func() interface{} { return new(models.FairwayAvailabilityImport) }, |
188 Handle: manualImport(imports.FAJobKind, importFairwayAvailability), | 188 Handle: manualImport(imports.FAJobKind, importFairwayAvailability), |
189 NoConn: true, | 189 NoConn: true, |
190 })).Methods(http.MethodPost) | 190 })).Methods(http.MethodPost) |
191 | 191 |
192 api.Handle("/imports/waterwayaxis", waterwayAdmin(&JSONHandler{ | |
193 Input: func() interface{} { return new(models.WaterwayAxisImport) }, | |
194 Handle: manualImport(imports.WXJobKind, importWaterwayAxis), | |
195 NoConn: true, | |
196 })).Methods(http.MethodPost) | |
197 | |
192 // Import scheduler configuration | 198 // Import scheduler configuration |
193 api.Handle("/imports/config/{id:[0-9]+}", | 199 api.Handle("/imports/config/{id:[0-9]+}", |
194 waterwayAdmin(&JSONHandler{ | 200 waterwayAdmin(&JSONHandler{ |
195 Handle: modifyImportConfig, | 201 Handle: modifyImportConfig, |
196 })).Methods(http.MethodPatch) | 202 })).Methods(http.MethodPatch) |