Skip to content

Commit

Permalink
Improve the routes
Browse files Browse the repository at this point in the history
  • Loading branch information
LuckyCyborg committed Jul 13, 2019
1 parent 12b8343 commit 527836e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Routes/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@


// Register the route for assets from main assets folder.
$dispatcher->route('assets/(.*)', function (Request $request, $path) use ($dispatcher)
$dispatcher->route('assets/(:all)', function (Request $request, $path) use ($dispatcher)
{
$basePath = Config::get('routing.assets.path', BASEPATH .'assets');

Expand All @@ -15,7 +15,7 @@
});

// Register the route for assets from Packages, Modules and Themes.
$dispatcher->route('packages/([^/]+)/([^/]+)/(.*)', function (Request $request, $vendor, $package, $path) use ($dispatcher)
$dispatcher->route('packages/(:any)/(:any)/(:all)', function (Request $request, $vendor, $package, $path) use ($dispatcher)
{
$namespace = $vendor .'/' .$package;

Expand All @@ -29,7 +29,7 @@
});

// Register the route for assets from Vendor.
$dispatcher->route('vendor/(.*)', function (Request $request, $path) use ($dispatcher)
$dispatcher->route('vendor/(:all)', function (Request $request, $path) use ($dispatcher)
{
$paths = $dispatcher->getVendorPaths();

Expand Down

0 comments on commit 527836e

Please sign in to comment.