Prefix api with the locale

parent 54704001
......@@ -106,7 +106,7 @@ abstract class RoutingServiceProvider extends ServiceProvider
if ($api && file_exists($api)) {
$router->group([
'namespace' => 'Api',
'prefix' => 'api',
'prefix' => LaravelLocalization::setLocale() . '/api',
'middleware' => config('asgard.core.core.middleware.api', []),
], function (Router $router) use ($api) {
require $api;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment