comparison pkg/controllers/routes.go @ 4800:37429e50a74f

Allow import log export for waterwayAdmin.
author Sascha Wilde <wilde@intevation.de>
date Fri, 25 Oct 2019 18:52:11 +0200
parents 1fef4679b07a
children 8eb36d0d5bdf
comparison
equal deleted inserted replaced
4799:f32d086b5dbf 4800:37429e50a74f
288 288
289 api.Handle("/imports", waterwayAdmin(&mw.JSONHandler{ 289 api.Handle("/imports", waterwayAdmin(&mw.JSONHandler{
290 Handle: listImports, 290 Handle: listImports,
291 })).Methods(http.MethodGet) 291 })).Methods(http.MethodGet)
292 292
293 api.Handle("/imports/export", sysAdmin( 293 api.Handle("/imports/export", waterwayAdmin(
294 mw.DBConn(http.HandlerFunc(exportImports)))).Methods(http.MethodGet) 294 mw.DBConn(http.HandlerFunc(exportImports)))).Methods(http.MethodGet)
295 295
296 api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&mw.JSONHandler{ 296 api.Handle("/imports/{id:[0-9]+}", waterwayAdmin(&mw.JSONHandler{
297 Handle: importLogs, 297 Handle: importLogs,
298 })).Methods(http.MethodGet) 298 })).Methods(http.MethodGet)