Modifs route 5.5
This commit is contained in:
parent
16a4e3ce2a
commit
9f448ef69c
|
@ -42,13 +42,17 @@ class ImagesServiceProvider extends ServiceProvider
|
||||||
|
|
||||||
public function loadRoutes()
|
public function loadRoutes()
|
||||||
{
|
{
|
||||||
$this->app->post('images/upload', [
|
$this->app->router->group([
|
||||||
'as' => 'uploadImage', 'uses' => '\Meoran\Images\Http\Controllers\ImagesController@upload'
|
'namespace' => '\Meoran\Images\Http\Controllers',
|
||||||
|
], function ($router) {
|
||||||
|
$router->post('images/upload', [
|
||||||
|
'as' => 'uploadImage', 'uses' => 'ImagesController@upload'
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$this->app->get('images/{filename}', [
|
$router->get('images/{filename}', [
|
||||||
'as' => 'getPicture', 'uses' => '\Meoran\Images\Http\Controllers\ImagesController@get'
|
'as' => 'getPicture', 'uses' => 'ImagesController@get'
|
||||||
]);
|
]);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue