Converted to TS, add import
This commit is contained in:
+12
-10
@@ -6,16 +6,17 @@ use Illuminate\Foundation\Application;
|
||||
use Illuminate\Support\Facades\Route;
|
||||
use Inertia\Inertia;
|
||||
|
||||
|
||||
/**
|
||||
* App Routes
|
||||
*/
|
||||
Route::domain(config('app.domain'))->group(
|
||||
function() {
|
||||
Route::get('/', function () {
|
||||
return Inertia::render('Welcome', [
|
||||
'canLogin' => Route::has('login'),
|
||||
'canRegister' => Route::has('register'),
|
||||
'laravelVersion' => Application::VERSION,
|
||||
'phpVersion' => PHP_VERSION,
|
||||
]);
|
||||
return Inertia::render('Index');
|
||||
});
|
||||
|
||||
Route::get('/import/fr24', function () {
|
||||
return Inertia::render('Fr24Import');
|
||||
});
|
||||
|
||||
Route::get('/dashboard', function () {
|
||||
@@ -33,6 +34,10 @@ Route::domain(config('app.domain'))->group(
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
/**
|
||||
* API Routes
|
||||
*/
|
||||
Route::domain(config('app.api_domain'))->group(function () {
|
||||
Route::get('/', function () {
|
||||
return response()->json(['message' => 'Welcome to the FlightsGoneBy API']);
|
||||
@@ -40,6 +45,3 @@ Route::domain(config('app.api_domain'))->group(function () {
|
||||
Route::get('airlines/logos/tail/{code}', [LogoController::class, 'getLogoByCode'])
|
||||
->where('code', '[A-Za-z0-9]{2,3}');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user