Mercurial > gemma
comparison pkg/controllers/routes.go @ 1050:146245d2198f
List all bottlenecks via GET /api/bottlenecks
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 25 Oct 2018 11:30:14 +0200 |
parents | a04126989d91 |
children | 137a8144e581 |
comparison
equal
deleted
inserted
replaced
1047:2cbc905ff0e9 | 1050:146245d2198f |
---|---|
131 api.Handle("/published", any(&JSONHandler{ | 131 api.Handle("/published", any(&JSONHandler{ |
132 Handle: published, | 132 Handle: published, |
133 NoConn: true, | 133 NoConn: true, |
134 })).Methods(http.MethodGet) | 134 })).Methods(http.MethodGet) |
135 | 135 |
136 // Bottleneck selection | 136 // Survey selection |
137 api.Handle("/surveys/{bottleneck}", any(&JSONHandler{ | 137 api.Handle("/surveys/{bottleneck}", any(&JSONHandler{ |
138 Handle: listSurveys, | 138 Handle: listSurveys, |
139 })).Methods(http.MethodGet) | |
140 | |
141 // Bottlenecks | |
142 api.Handle("/bottlencks", any(&JSONHandler{ | |
143 Handle: listBottlenecks, | |
139 })).Methods(http.MethodGet) | 144 })).Methods(http.MethodGet) |
140 | 145 |
141 // Cross sections | 146 // Cross sections |
142 api.Handle("/cross", any(&JSONHandler{ | 147 api.Handle("/cross", any(&JSONHandler{ |
143 Input: func() interface{} { return new(models.CrossSectionInput) }, | 148 Input: func() interface{} { return new(models.CrossSectionInput) }, |