Merge remote-tracking branch 'origin/develop' into develop
# Conflicts: # app/Http/Controllers/Base/LanguageController.php # app/Http/Kernel.php # app/Http/Middleware/TrimStrings.php # app/Providers/RouteServiceProvider.php
This commit is contained in:
commit
5927e0e12a
24 changed files with 641 additions and 591 deletions
|
@ -33,21 +33,6 @@ class RouteServiceProvider extends ServiceProvider
|
|||
*/
|
||||
public function map()
|
||||
{
|
||||
$this->mapper();
|
||||
|
||||
Route::group(['namespace' => $this->namespace], function ($router) {
|
||||
foreach (glob(app_path('Http//Routes') . '/*.php') as $file) {
|
||||
$this->app->make('Pterodactyl\\Http\\Routes\\' . basename($file, '.php'))->map($router);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
/**
|
||||
* Configure all routes used by the application.
|
||||
*
|
||||
* @return void
|
||||
*/
|
||||
protected function mapper() {
|
||||
Route::middleware(['web', 'auth', 'csrf'])
|
||||
->namespace($this->namespace . '\Base')
|
||||
->group(base_path('routes/base.php'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue