Session: Total cost: $5.44 (costs may be inaccurate due to usage of unknown models) Total duration (API): 50m 49s Total duration (wall): 1h 10m 53s Total code changes: 2972 lines added, 29 lines removed Usage by model: qwen/qwen3.6-35b-a3b: 287.3k input, 69.6k output, 11.5m cache read, 0 cache write ($5.37) claude-haiku-4-5: 9.4k input, 13.3k output, 8.3k cache read, 0 cache write ($0.0767) Runtime: llamacpp Model: Qwen 3.6 35B A3B Q4 K M Coding Agent: ClaudeCode
59 lines
1.9 KiB
PHP
59 lines
1.9 KiB
PHP
<?php
|
|
|
|
use App\Http\Controllers\OrganizationController;
|
|
use Illuminate\Support\Facades\Route;
|
|
|
|
// Homepage
|
|
Route::get('/', function () {
|
|
return view('home');
|
|
})->name('home');
|
|
|
|
// Auth pages
|
|
Route::get('/login', function () {
|
|
return view('auth.login');
|
|
})->name('login');
|
|
|
|
Route::post('/login', function () {
|
|
// TODO: Implement login logic
|
|
return redirect()->route('login');
|
|
})->name('login.post');
|
|
|
|
Route::get('/register', function () {
|
|
return view('auth.register');
|
|
})->name('register');
|
|
|
|
Route::post('/register', function () {
|
|
// TODO: Implement registration logic
|
|
return redirect()->route('register');
|
|
})->name('register.post');
|
|
|
|
// Organization CRUD
|
|
Route::middleware('auth')->group(function () {
|
|
Route::post('/organizations', [OrganizationController::class, 'store'])->name('organizations.store');
|
|
Route::delete('/organizations/{organization}', [OrganizationController::class, 'destroy'])->name('organizations.destroy');
|
|
Route::put('/organizations/{organization}/switch', [OrganizationController::class, 'switch'])->name('organizations.switch');
|
|
});
|
|
|
|
// Dashboard (redirects to organizations if user has any, else login)
|
|
Route::get('/dashboard', function () {
|
|
if (!auth()->check()) {
|
|
return redirect()->route('login');
|
|
}
|
|
$user = auth()->user();
|
|
if ($user->has_organization && $user->organizations()->exists()) {
|
|
$org = $user->organizations()->first();
|
|
return redirect()->route('organizations.show', $org);
|
|
}
|
|
return view('home');
|
|
})->name('dashboard');
|
|
|
|
// Organization management
|
|
Route::middleware('auth')->group(function () {
|
|
Route::get('/organizations/{organization}', [OrganizationController::class, 'show'])->name('organizations.show');
|
|
});
|
|
|
|
// Feature pages
|
|
Route::get('/features/{feature}', function ($feature) {
|
|
return view('features.show', ['feature' => $feature]);
|
|
})->name('features');
|