changeset 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 5daee6e32c56
children 756f3fc62da6
files pkg/controllers/routes.go
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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)