File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed
Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1023,14 +1023,8 @@ func configureAsHTTPServer() {
10231023
10241024func 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 {},
Original file line number Diff line number Diff line change 11package main
22
33// VERSION
4- var VERSION_APPLICATION = "1.5.5 "
4+ var VERSION_APPLICATION = "1.5.6 "
55
66// NAME
77var NAME_APPLICATION = "homer-app"
You can’t perform that action at this time.
0 commit comments