Added and grouped Blueprint routers

I've gone ahead and grouped Blueprint's routers as well as adding a placeholder extension page.
This commit is contained in:
purple 2023-01-30 14:50:29 +01:00
parent 5f6e7cd801
commit 29c0cb1441

View file

@ -5,7 +5,6 @@ use Pterodactyl\Http\Controllers\Admin;
use Pterodactyl\Http\Middleware\Admin\Servers\ServerInstalled; use Pterodactyl\Http\Middleware\Admin\Servers\ServerInstalled;
Route::get('/', [Admin\BaseController::class, 'index'])->name('admin.index'); Route::get('/', [Admin\BaseController::class, 'index'])->name('admin.index');
Route::get('/extensions', [Admin\ExtensionsController::class, 'index'])->name('admin.extensions');
/* /*
|-------------------------------------------------------------------------- |--------------------------------------------------------------------------
@ -227,3 +226,16 @@ Route::group(['prefix' => 'nests'], function () {
Route::delete('/egg/{egg:id}', [Admin\Nests\EggController::class, 'destroy']); Route::delete('/egg/{egg:id}', [Admin\Nests\EggController::class, 'destroy']);
Route::delete('/egg/{egg:id}/variables/{variable:id}', [Admin\Nests\EggVariableController::class, 'destroy']); Route::delete('/egg/{egg:id}/variables/{variable:id}', [Admin\Nests\EggVariableController::class, 'destroy']);
}); });
/*
|--------------------------------------------------------------------------
| Blueprint Extensions
|--------------------------------------------------------------------------
|
| Endpoint: /admin/extensions
|
*/
Route::group(['prefix' => 'extensions'], function () {
Route::get('/', [Admin\ExtensionsController::class, 'index'])->name('admin.extensions');
Route::get('/blueprint', [Admin\Extensions\Blueprint\BlueprintExtensionController::class, 'index'])->name('admin.extensions.blueprint');
});