Skip to content

Commit 55bf46f

Browse files
committed
use AppSubURL instead of AppURL in api/v1
1 parent 9f4831e commit 55bf46f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

routers/api/v1/api.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ func Routes(sessioner func(http.Handler) http.Handler) *web.Route {
576576
// Miscellaneous
577577
if setting.API.EnableSwagger {
578578
m.Get("/swagger", func(ctx *context.APIContext) {
579-
ctx.Redirect(setting.AppURL + "api/swagger")
579+
ctx.Redirect(setting.AppSubURL + "/api/swagger")
580580
})
581581
}
582582
m.Get("/version", misc.Version)

routers/api/v1/org/member.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,7 @@ func IsMember(ctx *context.APIContext) {
159159
}
160160
}
161161

162-
redirectURL := setting.AppURL + "api/v1/orgs/" + ctx.Org.Organization.Name + "/public_members/" + userToCheck.Name
162+
redirectURL := setting.AppSubURL + "/api/v1/orgs/" + ctx.Org.Organization.Name + "/public_members/" + userToCheck.Name
163163
ctx.Redirect(redirectURL, 302)
164164
}
165165

0 commit comments

Comments
 (0)