Modifs route 5.5

This commit is contained in:
Cassandre Cantet 2017-10-11 18:13:15 +02:00
parent 16a4e3ce2a
commit 9f448ef69c
1 changed files with 10 additions and 6 deletions

View File

@ -42,13 +42,17 @@ class ImagesServiceProvider extends ServiceProvider
public function loadRoutes()
{
$this->app->post('images/upload', [
'as' => 'uploadImage', 'uses' => '\Meoran\Images\Http\Controllers\ImagesController@upload'
$this->app->router->group([
'namespace' => '\Meoran\Images\Http\Controllers',
], function ($router) {
$router->post('images/upload', [
'as' => 'uploadImage', 'uses' => 'ImagesController@upload'
]);
$this->app->get('images/{filename}', [
'as' => 'getPicture', 'uses' => '\Meoran\Images\Http\Controllers\ImagesController@get'
$router->get('images/{filename}', [
'as' => 'getPicture', 'uses' => 'ImagesController@get'
]);
});
}
}