Mercurial > gemma
comparison pkg/controllers/routes.go @ 5218:7dbb7cc6dbfa new-fwa
Remove old routes for availabilties.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 11 May 2020 20:10:15 +0200 |
parents | 3c748b2b4de6 |
children | 6ba7e6ac0882 |
comparison
equal
deleted
inserted
replaced
5217:70d83b7d36ef | 5218:7dbb7cc6dbfa |
---|---|
322 NoConn: true, | 322 NoConn: true, |
323 })).Methods(http.MethodPut) | 323 })).Methods(http.MethodPut) |
324 | 324 |
325 // Handler to serve data to the client. | 325 // Handler to serve data to the client. |
326 | 326 |
327 api.Handle("/data/{kind:stretch|section|bottleneck}/fairway/{name:.+}", any( | 327 api.Handle("/data/{kind:stretch|section|bottleneck}/{type:availability|fairway}/{name:.+}", any( |
328 mw.DBConn(http.HandlerFunc(fairwayAvailability)))).Methods(http.MethodGet) | 328 mw.DBConn(http.HandlerFunc(fairwayAvailability)))).Methods(http.MethodGet) |
329 | 329 |
330 api.Handle("/data/stretch/shape/{name:.+}", any( | 330 api.Handle("/data/stretch/shape/{name:.+}", any( |
331 mw.DBConn(http.HandlerFunc(stretchShapeDownload)))).Methods(http.MethodGet) | 331 mw.DBConn(http.HandlerFunc(stretchShapeDownload)))).Methods(http.MethodGet) |
332 | |
333 api.Handle("/data/{kind:stretch|section}/availability/{name:.+}", any( | |
334 mw.DBConn(http.HandlerFunc(stretchAvailabilty)))).Methods(http.MethodGet) | |
335 | |
336 api.Handle("/data/{kind:stretch|section}/fairway-depth/{name:.+}", any( | |
337 mw.DBConn(http.HandlerFunc(stretchAvailableFairwayDepth)))).Methods(http.MethodGet) | |
338 | |
339 api.Handle("/data/bottleneck/fairway-depth/{objnam:.+}", any( | |
340 mw.DBConn(http.HandlerFunc(bottleneckAvailableFairwayDepth)))).Methods(http.MethodGet) | |
341 | |
342 api.Handle("/data/bottleneck/availability/{objnam:.+}", any( | |
343 mw.DBConn(http.HandlerFunc(bottleneckAvailabilty)))).Methods(http.MethodGet) | |
344 | 332 |
345 api.Handle("/data/waterlevels/{gauge:.+}", any( | 333 api.Handle("/data/waterlevels/{gauge:.+}", any( |
346 mw.DBConn(http.HandlerFunc(waterlevels)))).Methods(http.MethodGet) | 334 mw.DBConn(http.HandlerFunc(waterlevels)))).Methods(http.MethodGet) |
347 | 335 |
348 api.Handle("/data/longterm-waterlevels/{gauge:.+}", any( | 336 api.Handle("/data/longterm-waterlevels/{gauge:.+}", any( |