Skip to content

Commit b47e280

Browse files
committed
chore: update API endpoint paths in web middleware and GitHub app service for consistency
1 parent d29be96 commit b47e280

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

internal/web/web.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ func CreateMiddlewareWebFiles(app *api.Application) {
1919
Root: "dist",
2020
Filesystem: http.FS(webAssets),
2121
Skipper: func(c echo.Context) bool {
22-
return strings.HasPrefix(c.Request().URL.Path, "/swagger")
22+
return strings.HasPrefix(c.Request().URL.Path, "/api")
2323
},
2424
}))
2525
}

web/src/services/createGithubApp.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ export function buildGithubAppManifest(serverIp: string) {
88
name: `JustDeploy-${randomString}`,
99
url: serverUrl,
1010
hook_attributes: {
11-
url: serverUrl + "/github/events",
11+
url: serverUrl + "/api/github/events",
1212
},
1313
redirect_url: serverUrl + "/github/auth/redirect",
1414
callback_urls: [serverUrl + "/github/auth/redirect"],

0 commit comments

Comments
 (0)