mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-05-07 20:32:26 +00:00
70 lines
2.0 KiB
PHP
70 lines
2.0 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
use App\Http\Controllers\Web\DashboardController;
|
|
use App\Http\Controllers\Web\HealthCheckController;
|
|
use App\Http\Controllers\Web\HomeController;
|
|
use Illuminate\Support\Facades\Route;
|
|
use Inertia\Inertia;
|
|
use Laravel\Jetstream\Jetstream;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Web Routes
|
|
|--------------------------------------------------------------------------
|
|
|
|
|
| Here is where you can register web routes for your application. These
|
|
| routes are loaded by the RouteServiceProvider within a group which
|
|
| contains the "web" middleware group. Now create something great!
|
|
|
|
|
*/
|
|
|
|
Route::get('/', [HomeController::class, 'index']);
|
|
|
|
Route::middleware([
|
|
'auth:web',
|
|
config('jetstream.auth_session'),
|
|
'verified',
|
|
])->group(function () {
|
|
Route::get('/dashboard', [DashboardController::class, 'dashboard'])->name('dashboard');
|
|
|
|
Route::get('/time', function () {
|
|
return Inertia::render('Time');
|
|
})->name('time');
|
|
|
|
Route::get('/reporting', function () {
|
|
return Inertia::render('Reporting');
|
|
})->name('reporting');
|
|
|
|
Route::get('/projects', function () {
|
|
return Inertia::render('Projects');
|
|
})->name('projects');
|
|
|
|
Route::get('/projects/{project}', function () {
|
|
return Inertia::render('ProjectShow');
|
|
})->name('projects.show');
|
|
|
|
Route::get('/clients', function () {
|
|
return Inertia::render('Clients');
|
|
})->name('clients');
|
|
|
|
Route::get('/members', function () {
|
|
return Inertia::render('Members', [
|
|
'availableRoles' => array_values(Jetstream::$roles),
|
|
]);
|
|
})->name('members');
|
|
|
|
Route::get('/tags', function () {
|
|
return Inertia::render('Tags');
|
|
})->name('tags');
|
|
|
|
Route::get('/import', function () {
|
|
return Inertia::render('Import');
|
|
})->name('import');
|
|
|
|
});
|
|
|
|
Route::get('health-check/up', [HealthCheckController::class, 'up']);
|
|
Route::get('health-check/debug', [HealthCheckController::class, 'debug']);
|