diff --git a/backend/api-gateway/kong.yml b/backend/api-gateway/kong.yml index 7e6f4c4f..35ecee9a 100644 --- a/backend/api-gateway/kong.yml +++ b/backend/api-gateway/kong.yml @@ -228,6 +228,14 @@ services: paths: - /api/v1/mobile/system strip_path: false + - name: admin-app-assets-public + paths: + - /api/v1/app-assets + strip_path: false + - name: admin-system-config-public + paths: + - /api/v1/system-config + strip_path: false # --------------------------------------------------------------------------- # Presence Service - 在线状态服务 diff --git a/backend/services/admin-service/src/api/controllers/app-asset.controller.ts b/backend/services/admin-service/src/api/controllers/app-asset.controller.ts index c51e64ae..03c9fd62 100644 --- a/backend/services/admin-service/src/api/controllers/app-asset.controller.ts +++ b/backend/services/admin-service/src/api/controllers/app-asset.controller.ts @@ -229,7 +229,7 @@ export class AdminAppAssetController { // ============================================================================= @ApiTags('App Assets (Public)') -@Controller('api/v1/app-assets') +@Controller('app-assets') export class PublicAppAssetController { constructor(private readonly prisma: PrismaService) {} diff --git a/backend/services/admin-service/src/api/controllers/system-config.controller.ts b/backend/services/admin-service/src/api/controllers/system-config.controller.ts index 560781b7..6ad1ad71 100644 --- a/backend/services/admin-service/src/api/controllers/system-config.controller.ts +++ b/backend/services/admin-service/src/api/controllers/system-config.controller.ts @@ -173,7 +173,7 @@ export class AdminSystemConfigController { * 移动端/公开系统配置控制器 * 用于 mobile-app 获取展示相关的配置 */ -@Controller('api/v1/system-config') +@Controller('system-config') export class PublicSystemConfigController { constructor( @Inject(SYSTEM_CONFIG_REPOSITORY) diff --git a/frontend/mobile-app/lib/core/services/app_asset_service.dart b/frontend/mobile-app/lib/core/services/app_asset_service.dart index 6dd1b96c..8604e212 100644 --- a/frontend/mobile-app/lib/core/services/app_asset_service.dart +++ b/frontend/mobile-app/lib/core/services/app_asset_service.dart @@ -179,7 +179,7 @@ class AppAssetService { Future _fetchFromApi() async { try { final response = await _apiClient.get( - '/admin-service/api/v1/app-assets', + '/app-assets', ); if (response.data is List) { return AppAssetConfig.fromList(response.data as List); diff --git a/frontend/mobile-app/lib/core/services/system_config_service.dart b/frontend/mobile-app/lib/core/services/system_config_service.dart index 10ce6a72..c91045d4 100644 --- a/frontend/mobile-app/lib/core/services/system_config_service.dart +++ b/frontend/mobile-app/lib/core/services/system_config_service.dart @@ -77,7 +77,7 @@ class SystemConfigService { try { final response = await _apiClient.get( - '/admin-service/api/v1/system-config/display/settings', + '/system-config/display/settings', ); _cachedDisplaySettings = DisplaySettings.fromJson(response.data);