File tree 2 files changed +3
-9
lines changed
2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1023,14 +1023,8 @@ func configureAsHTTPServer() {
1023
1023
1024
1024
func performV1APIRouting (e * echo.Echo ) {
1025
1025
1026
- prefix := * appFlags .APIPrefix
1027
-
1028
- if viper .IsSet ("http_settings.api_prefix" ) {
1029
- prefix = viper .GetString ("http_settings.api_prefix" )
1030
- }
1031
-
1032
1026
// 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" )
1034
1028
1035
1029
switch config .Setting .MAIN_SETTINGS .DefaultAuth {
1036
1030
case "ldap" :
@@ -1049,7 +1043,7 @@ func performV1APIRouting(e *echo.Echo) {
1049
1043
apirouterv1 .RouteWebSocketApis (acc , addr )
1050
1044
1051
1045
// 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" )
1053
1047
// Configure middleware with the custom claims type
1054
1048
config := middleware.JWTConfig {
1055
1049
Claims : & auth.JwtUserClaim {},
Original file line number Diff line number Diff line change 1
1
package main
2
2
3
3
// VERSION
4
- var VERSION_APPLICATION = "1.5.5 "
4
+ var VERSION_APPLICATION = "1.5.6 "
5
5
6
6
// NAME
7
7
var NAME_APPLICATION = "homer-app"
You can’t perform that action at this time.
0 commit comments