abp icon indicating copy to clipboard operation
abp copied to clipboard

How to correctly configure RouteTenantResolveContributor

Open sanghel-payoff opened this issue 4 years ago • 3 comments

ABP Commercial 5.1.2, UI Angular, EFCore Postgresql

What configuration is required in order to correctly use the RouteTenantResolveContributor for all ApplicationService routes?

#7624 was left unaswered

Following some hints on #8806, it seems that it might be possibile to configure a base route path for all actions in the HttpApiHostModule, something like:

private void ConfigureConventionalControllers()
    {
        Configure<AbpAspNetCoreMvcOptions>(options =>
        {
            // default template sources
            //  options.ConventionalControllers.Create(typeof(ApplicationModule).Assembly);

            // route root with tenant for RouteTenantResolveContributor 
            options.ConventionalControllers.Create(typeof(ApplicationModule).Assembly,  options => {  options.RootPath = "__tenant}/app"; });
        });
    }

Is this sufficient in order to configure the RouteTenantResolveContributor ?

Are modifications necessary on the frontent Angular code to allow client proxy generation to continue working correctly?

sanghel-payoff avatar Mar 08 '22 16:03 sanghel-payoff

bump ?

sanghel-payoff avatar Mar 16 '22 18:03 sanghel-payoff

bump?

sanghel-payoff avatar May 05 '22 12:05 sanghel-payoff

hi

Please get help on https://support.abp.io/QA/Questions for ABP Commercial.

maliming avatar May 06 '22 00:05 maliming