Mercurial > gemma
diff pkg/controllers/routes.go @ 642:e95df6657023
Cross sections: call web endpoint simply 'cross' instead of 'cross-section'.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 13 Sep 2018 10:31:22 +0200 |
parents | 6093016fac88 |
children | 3e9f0070c33e |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Thu Sep 13 10:14:59 2018 +0200 +++ b/pkg/controllers/routes.go Thu Sep 13 10:31:22 2018 +0200 @@ -97,7 +97,7 @@ // Cross sections - api.Handle("/cross-section", any(&JSONHandler{ + api.Handle("/cross", any(&JSONHandler{ Input: func() interface{} { return new(models.CrossSectionInput) }, Handle: crossSection, })).Methods(http.MethodPost)