File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 22// Use of this source code is governed by a MIT-style
33// license that can be found in the LICENSE file.
44
5- package org
5+ package admin
66
77import (
88 "net/http"
@@ -36,7 +36,7 @@ func ListHooks(ctx *context.APIContext) {
3636 // "200":
3737 // "$ref": "#/responses/HookList"
3838
39- sysHooks , err := models .GetSystemWebhooks (utils . GetListOptions ( ctx ) )
39+ sysHooks , err := models .GetSystemWebhooks ()
4040 if err != nil {
4141 ctx .Error (http .StatusInternalServerError , "GetSystemWebhooks" , err )
4242 return
Original file line number Diff line number Diff line change @@ -1032,7 +1032,7 @@ func Routes() *web.Route {
10321032 m .Combo ("" ).Get (admin .ListHooks ).
10331033 Post (bind (api.CreateHookOption {}), admin .CreateHook )
10341034 m .Combo ("/{id}" ).Get (admin .GetHook ).
1035- Patch (bind (admin .EditHookOption {}), admin .EditHook ).
1035+ Patch (bind (api .EditHookOption {}), admin .EditHook ).
10361036 Delete (admin .DeleteHook )
10371037 })
10381038 }, reqToken (), reqSiteAdmin ())
You can’t perform that action at this time.
0 commit comments