Mercurial > gemma
comparison pkg/controllers/routes.go @ 5259:680be197844d
Merged branch new-fwa.
author | Sascha Wilde <wilde@intevation.de> |
---|---|
date | Wed, 13 May 2020 11:28:34 +0200 |
parents | 6ba7e6ac0882 |
children | 0919946f624b |
comparison
equal
deleted
inserted
replaced
5183:1b5c80ea5582 | 5259:680be197844d |
---|---|
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/{type:availability|fairway}/{kind:stretch|section|bottleneck}/{name:.+}", any( | |
328 mw.DBConn(http.HandlerFunc(fairwayAvailability)))).Methods(http.MethodGet) | |
329 | |
327 api.Handle("/data/stretch/shape/{name:.+}", any( | 330 api.Handle("/data/stretch/shape/{name:.+}", any( |
328 mw.DBConn(http.HandlerFunc(stretchShapeDownload)))).Methods(http.MethodGet) | 331 mw.DBConn(http.HandlerFunc(stretchShapeDownload)))).Methods(http.MethodGet) |
329 | |
330 api.Handle("/data/{kind:stretch|section}/availability/{name:.+}", any( | |
331 mw.DBConn(http.HandlerFunc(stretchAvailabilty)))).Methods(http.MethodGet) | |
332 | |
333 api.Handle("/data/{kind:stretch|section}/fairway-depth/{name:.+}", any( | |
334 mw.DBConn(http.HandlerFunc(stretchAvailableFairwayDepth)))).Methods(http.MethodGet) | |
335 | |
336 api.Handle("/data/bottleneck/fairway-depth/{objnam:.+}", any( | |
337 mw.DBConn(http.HandlerFunc(bottleneckAvailableFairwayDepth)))).Methods(http.MethodGet) | |
338 | |
339 api.Handle("/data/bottleneck/availability/{objnam:.+}", any( | |
340 mw.DBConn(http.HandlerFunc(bottleneckAvailabilty)))).Methods(http.MethodGet) | |
341 | 332 |
342 api.Handle("/data/waterlevels/{gauge:.+}", any( | 333 api.Handle("/data/waterlevels/{gauge:.+}", any( |
343 mw.DBConn(http.HandlerFunc(waterlevels)))).Methods(http.MethodGet) | 334 mw.DBConn(http.HandlerFunc(waterlevels)))).Methods(http.MethodGet) |
344 | 335 |
345 api.Handle("/data/longterm-waterlevels/{gauge:.+}", any( | 336 api.Handle("/data/longterm-waterlevels/{gauge:.+}", any( |