mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-04 20:54:03 +00:00
Add alternate route for path-identified assets
This commit is contained in:
parent
212653e245
commit
84f40f542c
1 changed files with 4 additions and 0 deletions
|
|
@ -7,3 +7,7 @@ use Illuminate\Support\Facades\Route;
|
||||||
Route::get('/tenancy/assets/{path?}', 'Stancl\Tenancy\Controllers\TenantAssetsController@asset')
|
Route::get('/tenancy/assets/{path?}', 'Stancl\Tenancy\Controllers\TenantAssetsController@asset')
|
||||||
->where('path', '(.*)')
|
->where('path', '(.*)')
|
||||||
->name('stancl.tenancy.asset');
|
->name('stancl.tenancy.asset');
|
||||||
|
|
||||||
|
Route::get('/{tenant}/assets/{path?}', 'Stancl\Tenancy\Controllers\TenantAssetsController@asset')
|
||||||
|
->where('path', '(.*)')
|
||||||
|
->name('stancl.tenancy.asset.path');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue