Commit bd498e1a authored by Nicolas Widart's avatar Nicolas Widart

Adding correct routes file

parent bc368392
<?php <?php
Route::group( $router->group(['prefix' => LaravelLocalization::setLocale(), 'before' => 'LaravelLocalizationRedirectFilter|auth.admin'], function($router)
['prefix' => 'media', 'namespace' => 'Modules\Media\Http\Controllers'], {
function () { $router->group(['prefix' => Config::get('core::core.admin-prefix'), 'namespace' => 'Modules\Media\Http\Controllers'], function($router)
Route::get('/', 'MediaController@index'); {
} $router->resource('media', 'Admin\MediaController', ['except' => ['show'], 'names' => [
); 'index' => 'dashboard.media.index',
'create' => 'dashboard.media.create',
'store' => 'dashboard.media.store',
'edit' => 'dashboard.media.edit',
'update' => 'dashboard.media.update',
'destroy' => 'dashboard.media.destroy',
]]);
});
});
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