File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 2
2
// Use of this source code is governed by a MIT-style
3
3
// license that can be found in the LICENSE file.
4
4
5
- package org
5
+ package admin
6
6
7
7
import (
8
8
"net/http"
@@ -36,7 +36,7 @@ func ListHooks(ctx *context.APIContext) {
36
36
// "200":
37
37
// "$ref": "#/responses/HookList"
38
38
39
- sysHooks , err := models .GetSystemWebhooks (utils . GetListOptions ( ctx ) )
39
+ sysHooks , err := models .GetSystemWebhooks ()
40
40
if err != nil {
41
41
ctx .Error (http .StatusInternalServerError , "GetSystemWebhooks" , err )
42
42
return
Original file line number Diff line number Diff line change @@ -1032,7 +1032,7 @@ func Routes() *web.Route {
1032
1032
m .Combo ("" ).Get (admin .ListHooks ).
1033
1033
Post (bind (api.CreateHookOption {}), admin .CreateHook )
1034
1034
m .Combo ("/{id}" ).Get (admin .GetHook ).
1035
- Patch (bind (admin .EditHookOption {}), admin .EditHook ).
1035
+ Patch (bind (api .EditHookOption {}), admin .EditHook ).
1036
1036
Delete (admin .DeleteHook )
1037
1037
})
1038
1038
}, reqToken (), reqSiteAdmin ())
You can’t perform that action at this time.
0 commit comments