diff pkg/controllers/routes.go @ 1468:5e1218b5a123 bulkreview

proof of concept
author Thomas Junk <thomas.junk@intevation.de>
date Thu, 29 Nov 2018 12:09:01 +0100
parents 24e4c60c2606
children 286a3306f6bf
line wrap: on
line diff
--- a/pkg/controllers/routes.go	Thu Nov 29 09:59:10 2018 +0100
+++ b/pkg/controllers/routes.go	Thu Nov 29 12:09:01 2018 +0100
@@ -182,6 +182,10 @@
 		Handle: importLogs,
 	})).Methods(http.MethodGet)
 
+	api.Handle("/imports", waterwayAdmin(&JSONHandler{
+		Handle: reviewImports,
+	})).Methods(http.MethodPatch)
+
 	api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&JSONHandler{
 		Handle: deleteImport,
 	})).Methods(http.MethodDelete)