comparison pkg/controllers/routes.go @ 5185:3c748b2b4de6 new-fwa

Merged default into new-fwa branch.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Fri, 27 Mar 2020 15:57:40 +0100
parents 445daeefca7b 2dcfab23dc86
children 7dbb7cc6dbfa
comparison
equal deleted inserted replaced
5184:445daeefca7b 5185:3c748b2b4de6
172 })).Methods(http.MethodGet) 172 })).Methods(http.MethodGet)
173 173
174 // Survey selection 174 // Survey selection
175 api.Handle("/surveys/{bottleneck:.+}", any(&mw.JSONHandler{ 175 api.Handle("/surveys/{bottleneck:.+}", any(&mw.JSONHandler{
176 Handle: listSurveys, 176 Handle: listSurveys,
177 })).Methods(http.MethodGet)
178
179 // Bottlenecks
180 api.Handle("/bottlenecks", any(&mw.JSONHandler{
181 Handle: listBottlenecks,
182 })).Methods(http.MethodGet) 177 })).Methods(http.MethodGet)
183 178
184 // difference calculation 179 // difference calculation
185 api.Handle("/diff", any(&mw.JSONHandler{ 180 api.Handle("/diff", any(&mw.JSONHandler{
186 Input: func(*http.Request) interface{} { return new(models.DiffCalculationInput) }, 181 Input: func(*http.Request) interface{} { return new(models.DiffCalculationInput) },