Skip to main content

Application Assets

the application may load assets when starting, these recourses are with relative path.

/bundles/apps/myAppKay/resources/images/image1.png

The LegacyAppResourcesRequestTransformer breaks down and use in the, the app key in the instance is mayAppKey and the resource path till the be images/image1.png. when creating a proxy request.

     public static IEndpointRouteBuilder MapFusionPortalAssetProxy(this IEndpointRouteBuilder endpoints)
{
endpoints.MapGet("/bundles/apps/{appKey}/resources/{*resourcePath}", AssetProxyHandler.ProxyRequestAsync<LegacyAppResourcesRequestTransformer>);
// other endpoint...

return endpoints;
}