Mercurial > gemma
comparison pkg/controllers/routes.go @ 4296:95786a675d70
WIP: Started with downloading stretches as ESRI shapes.
GET /api/data/stretch/shape/{stretch}
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Fri, 30 Aug 2019 18:34:27 +0200 |
parents | 4394daeea96a |
children | fee5794f3b7a |
comparison
equal
deleted
inserted
replaced
4295:0bb735a412af | 4296:95786a675d70 |
---|---|
307 Handle: reviewImport, | 307 Handle: reviewImport, |
308 })).Methods(http.MethodPut) | 308 })).Methods(http.MethodPut) |
309 | 309 |
310 // Handler to serve data to the client. | 310 // Handler to serve data to the client. |
311 | 311 |
312 api.Handle("/data/{kind:stretch|section}/shape/{name}", any( | |
313 mw.DBConn(http.HandlerFunc(stretchShapeDownload)))).Methods(http.MethodGet) | |
314 | |
312 api.Handle("/data/{kind:stretch|section}/availability/{name}", any( | 315 api.Handle("/data/{kind:stretch|section}/availability/{name}", any( |
313 mw.DBConn(http.HandlerFunc(stretchAvailabilty)))).Methods(http.MethodGet) | 316 mw.DBConn(http.HandlerFunc(stretchAvailabilty)))).Methods(http.MethodGet) |
314 | 317 |
315 api.Handle("/data/{kind:stretch|section}/fairway-depth/{name}", any( | 318 api.Handle("/data/{kind:stretch|section}/fairway-depth/{name}", any( |
316 mw.DBConn(http.HandlerFunc(stretchAvailableFairwayDepth)))).Methods(http.MethodGet) | 319 mw.DBConn(http.HandlerFunc(stretchAvailableFairwayDepth)))).Methods(http.MethodGet) |