Mercurial > gemma
diff pkg/controllers/routes.go @ 1582:dc727824183a
Started with REST API for scheduler.
author | Sascha L. Teichmann <sascha.teichmann@intevation.de> |
---|---|
date | Thu, 13 Dec 2018 18:08:17 +0100 |
parents | 165f31b71042 |
children | caedd9b176f2 |
line wrap: on
line diff
--- a/pkg/controllers/routes.go Thu Dec 13 17:34:12 2018 +0100 +++ b/pkg/controllers/routes.go Thu Dec 13 18:08:17 2018 +0100 @@ -202,6 +202,12 @@ Handle: reviewImport, })).Methods(http.MethodPut) + // Import scheduler configuration + api.Handle("/imports/scheduler}", + waterwayAdmin(&JSONHandler{ + Handle: listScheduler, + })).Methods(http.MethodGet) + // Token handling: Login/Logout. api.HandleFunc("/login", login). Methods(http.MethodPost)