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 14, 2019
1 parent d47c9c7 commit 990d1ab
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/Routes/Assets.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@
// Register the route for assets from Packages, Modules and Themes.
$dispatcher->route('packages/(:any)/(:any)/(:all)', function (Request $request, $vendor, $package, $path) use ($dispatcher)
{
return $dispatcher->servePackageFile($vendor, $package, $path, $request);
$namespace = $vendor .'/' .$package;

return $dispatcher->servePackageFile($namespace, $path, $request);
});

// Register the route for assets from Vendor.
Expand Down

0 comments on commit 990d1ab

Please sign in to comment.