Mercurial > gemma
diff 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 |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Fri Aug 30 16:54:12 2019 +0200 +++ b/pkg/controllers/routes.go Fri Aug 30 18:34:27 2019 +0200 @@ -309,6 +309,9 @@ // Handler to serve data to the client. + api.Handle("/data/{kind:stretch|section}/shape/{name}", any( + mw.DBConn(http.HandlerFunc(stretchShapeDownload)))).Methods(http.MethodGet) + api.Handle("/data/{kind:stretch|section}/availability/{name}", any( mw.DBConn(http.HandlerFunc(stretchAvailabilty)))).Methods(http.MethodGet)