issues
search
axuno
/
Volleyball-League
Volleyball League is an open source sports platform that brings everything necessary to organize and to run a league.
https://volleyball-liga.de
MIT License
19
stars
4
forks
source link
Refactor tenant routing
#60
Closed
axunonb
closed
1 year ago
axunonb
commented
1 year ago
Changes:
Replace usage of
IUrlHelper
by new
TenantLink
which is based on
LinkGenerator
, so that the tenant-specific route is added automatically.
Replace `ControllerBase.RedirectToAction(...) with ControllerBase.Redirect(TenantLink.Action(...))``
Replace tenant literals in controllers'
Route
attribute with constant, e.g.: [Route(TenantRouteConstraint.Template)]`
Change Routing key for Tenants from "organization" to "tenant"
In Razor Views: asp-route-organization => asp-route-tenant
TenantRouteConstraint.Key: from "organization" to "tenant"
Changes:
IUrlHelper
by newTenantLink
which is based onLinkGenerator
, so that the tenant-specific route is added automatically.Route
attribute with constant, e.g.: [Route(TenantRouteConstraint.Template)]`