Bus UI Portal
APIURLResolver keeps module API paths host-owned.
Use the resolver helpers when a mounted module needs to call its own API or an allowed provider origin without assuming a fixed public URL shape.
Public API
| Package | github.com/busdk/bus-ui/pkg/ui |
|---|---|
| Resolver | RuntimeAPIURLResolver |
| Normalize | NormalizeRuntimeAPIOrigins |
| Resolve | RuntimeAPIBaseAbsolute, ResolveRuntimeAPIURL |
Example
resolver := ui.RuntimeAPIURLResolver{
BaseURL: "/modules/accounting/api/",
}
url, err := ui.ResolveRuntimeAPIURL(resolver, "reports/current")
