Skip to content

Commit ce4c35f

Browse files
committed
rename and fix nit
1 parent 7ed97a1 commit ce4c35f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

modules/private/hook.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ func SetDefaultBranch(ownerName, repoName, branch string) error {
156156

157157
// SSHLog send ssh error log to
158158
func SSHLog(isErr bool, msg string) error {
159-
reqURL := setting.LocalURL + "ssh_log"
159+
reqURL := setting.LocalURL + "api/internal/ssh/log"
160160
req := newInternalRequest(reqURL, "POST")
161161
req = req.Header("Content-Type", "application/json")
162162

routers/private/internal.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ func Routes() *web.Route {
5555

5656
r.Post("/ssh/authorized_keys", AuthorizedPublicKeyByContent)
5757
r.Post("/ssh/{id}/update/{repoid}", UpdatePublicKeyInRepo)
58-
r.Post("/ssh_log", bind(private.SSHLogOption{}), SSHLog)
58+
r.Post("/ssh/log", bind(private.SSHLogOption{}), SSHLog)
5959
r.Post("/hook/pre-receive/{owner}/{repo}", bind(private.HookOptions{}), HookPreReceive)
6060
r.Post("/hook/post-receive/{owner}/{repo}", bind(private.HookOptions{}), HookPostReceive)
6161
r.Post("/hook/set-default-branch/{owner}/{repo}/{branch}", SetDefaultBranch)

0 commit comments

Comments
 (0)