Show pages for app,env,org plus navigation, servers wip

This commit is contained in:
2025-03-28 15:18:12 +00:00
parent 72b6231b8c
commit 7d2bc3ca5e
15 changed files with 201 additions and 29 deletions

View File

@@ -1,7 +1,9 @@
<?php
use App\Http\Controllers\ApplicationController;
use App\Http\Controllers\EnvironmentController;
use App\Http\Controllers\OrganisationController;
use App\Http\Controllers\ServerController;
use Illuminate\Support\Facades\Route;
use Inertia\Inertia;
@@ -14,9 +16,22 @@ Route::middleware(['auth', 'verified'])->group(function () {
Route::prefix('organisations/{organisation}')->group(function () {
Route::get('/', [OrganisationController::class, 'show'])->name('organisations.show');
Route::resource('servers', ServerController::class)
->only('index', 'create', 'store')
->name('index', 'servers.index')
->name('create', 'servers.create')
->name('store', 'servers.store');
Route::resource('applications', ApplicationController::class)
->only('show')
->name('show', 'applications.show');
Route::prefix('applications/{application}')->group(function () {
Route::resource('environments', EnvironmentController::class)
->only('show')
->name('show', 'environments.show');
});
});
});