Mercurial > gemma
comparison pkg/controllers/routes.go @ 5184:445daeefca7b new-fwa
Added controller stub for new fairway availability.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Mon, 23 Mar 2020 15:29:55 +0100 |
parents | d727641911a5 |
children | 3c748b2b4de6 |
comparison
equal
deleted
inserted
replaced
5035:56c589f7435d | 5184:445daeefca7b |
---|---|
327 NoConn: true, | 327 NoConn: true, |
328 })).Methods(http.MethodPut) | 328 })).Methods(http.MethodPut) |
329 | 329 |
330 // Handler to serve data to the client. | 330 // Handler to serve data to the client. |
331 | 331 |
332 api.Handle("/data/{kind:stretch|section|bottleneck}/fairway/{name:.+}", any( | |
333 mw.DBConn(http.HandlerFunc(fairwayAvailability)))).Methods(http.MethodGet) | |
334 | |
332 api.Handle("/data/stretch/shape/{name:.+}", any( | 335 api.Handle("/data/stretch/shape/{name:.+}", any( |
333 mw.DBConn(http.HandlerFunc(stretchShapeDownload)))).Methods(http.MethodGet) | 336 mw.DBConn(http.HandlerFunc(stretchShapeDownload)))).Methods(http.MethodGet) |
334 | 337 |
335 api.Handle("/data/{kind:stretch|section}/availability/{name:.+}", any( | 338 api.Handle("/data/{kind:stretch|section}/availability/{name:.+}", any( |
336 mw.DBConn(http.HandlerFunc(stretchAvailabilty)))).Methods(http.MethodGet) | 339 mw.DBConn(http.HandlerFunc(stretchAvailabilty)))).Methods(http.MethodGet) |