打开 关闭

Get Remote API URL from Blazor Wasm #5369


User avatar
0
jhsanc 创建
  • ABP Framework version: v7.1.1
  • UI type: Blazor Wasm
  • DB provider: EF Core
  • Tiered (MVC) or Identity Server Separated (Angular): no

I need know how I can do to get api URL from separated blazor wasm module, if I write this:

        var apiURL = _configuration.GetValue<string>("RemoteServices:BaseUrl");

Return null, coz it's called in module not in root application:

I need get BaseURL of blazor root application appsettings.json but from a module:


1 答案
  • User Avatar
    0
    maliming 创建
    支持团队 Fullstack Developer

    hi

    I guess the name of the baseUrl should be RemoteServices:Default:BaseUrl

Made with ❤️ on ABP v8.2.0-preview Updated on 三月 25, 2024, 15:11