ldc-arcadia-api/routes/api.php
Jérémy Munsch 1842223ddc
refactor(database): improve replicated factories, seeders, and config injection
- AbstractTableFactory delegates connection resolution without hardcoded config keys
- Enforce mandatory connection parameter on Migrator without Infra dependencies
- Inject ArcadiaStorageConfig, AppConfig, and HmacAuthConfig into services, seeders, and health checkers
- Enhance factories and seeders with helper methods (truncate, count, query, new)
- Clean up covers annotations on database seeders integration tests
2026-08-26 17:29:13 +02:00

27 lines
618 B
PHP

<?php
declare(strict_types=1);
use Application\Arcadia\Config\AppConfig;
use Illuminate\Support\Facades\Route;
// * Api Root URL
Route::get(
'/',
fn () => response()->json([
'message' => resolve(AppConfig::class)->name->value . ' please choose a version',
'versions' => [
'v1' => route('api.v1.root'),
],
])
)->name('api.root');
Route::get('/ping', fn () => response()->json('pong'))->name('api.ping');
// * V1 API
Route::prefix('v1')
->name('api.v1.')
->middleware('api.v1')
->group(function (): void {
require __DIR__ . '/apiv1.php';
});