diff pkg/controllers/routes.go @ 1224:bc4b642c8d04

Started with an upload sounding result to temp upload area.
author Sascha L. Teichmann <sascha.teichmann@intevation.de>
date Mon, 19 Nov 2018 17:14:42 +0100
parents 3afa71405b87
children 17131f0f9fcb
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Mon Nov 19 16:50:04 2018 +0100
+++ b/pkg/controllers/routes.go	Mon Nov 19 17:14:42 2018 +0100
@@ -160,8 +160,12 @@
 		sysAdmin(http.HandlerFunc(uploadStyle))).Methods(http.MethodPost)
 
 	// Imports
-	api.Handle("/imports/soundingresult",
-		waterwayAdmin(http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost)
+	api.Handle("/imports/soundingresult-upload", waterwayAdmin(&JSONHandler{
+		Handle: uploadSoundingResult,
+	})).Methods(http.MethodPost)
+
+	api.Handle("/imports/soundingresult", waterwayAdmin(
+		http.HandlerFunc(importSoundingResult))).Methods(http.MethodPost)
 
 	// Import queue
 	lsImports := waterwayAdmin(&JSONHandler{