Skip to content

Commit c9bda8d

Browse files
committed
fixed path
1 parent aca97d4 commit c9bda8d

File tree

2 files changed

+3
-9
lines changed

2 files changed

+3
-9
lines changed

Diff for: main.go

+2-8
Original file line numberDiff line numberDiff line change
@@ -1023,14 +1023,8 @@ func configureAsHTTPServer() {
10231023

10241024
func performV1APIRouting(e *echo.Echo) {
10251025

1026-
prefix := *appFlags.APIPrefix
1027-
1028-
if viper.IsSet("http_settings.api_prefix") {
1029-
prefix = viper.GetString("http_settings.api_prefix")
1030-
}
1031-
10321026
// accessible web services will fall in this group
1033-
acc := e.Group(prefix + "/api/v3")
1027+
acc := e.Group(config.Setting.MAIN_SETTINGS.APIPrefix + "/api/v3")
10341028

10351029
switch config.Setting.MAIN_SETTINGS.DefaultAuth {
10361030
case "ldap":
@@ -1049,7 +1043,7 @@ func performV1APIRouting(e *echo.Echo) {
10491043
apirouterv1.RouteWebSocketApis(acc, addr)
10501044

10511045
// restricted web services will fall in this group
1052-
res := e.Group(prefix + "/api/v3")
1046+
res := e.Group(config.Setting.MAIN_SETTINGS.APIPrefix + "/api/v3")
10531047
// Configure middleware with the custom claims type
10541048
config := middleware.JWTConfig{
10551049
Claims: &auth.JwtUserClaim{},

Diff for: version.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package main
22

33
// VERSION
4-
var VERSION_APPLICATION = "1.5.5"
4+
var VERSION_APPLICATION = "1.5.6"
55

66
// NAME
77
var NAME_APPLICATION = "homer-app"

0 commit comments

Comments
 (0)