Modifs route 5.5
This commit is contained in:
parent
16a4e3ce2a
commit
9f448ef69c
|
@ -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'
|
||||
]);
|
||||
});
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue