Mercurial > gemma
diff pkg/controllers/routes.go @ 1534:165f31b71042
Bottleneck import: Added /api/imports/bottleneck POST endpoint.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 07 Dec 2018 14:54:39 +0100 |
parents | d349618c6b50 |
children | dc727824183a |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Fri Dec 07 14:36:06 2018 +0100 +++ b/pkg/controllers/routes.go Fri Dec 07 14:54:39 2018 +0100 @@ -170,6 +170,11 @@ api.Handle("/imports/soundingresult", waterwayAdmin( http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost) + api.Handle("/imports/bottleneck", waterwayAdmin(&JSONHandler{ + Input: func() interface{} { return new(models.BottleneckImport) }, + Handle: importBottleneck, + })).Methods(http.MethodPost) + // Import queue lsImports := waterwayAdmin(&JSONHandler{ Handle: listImports,