HEX
Server: nginx/1.28.3
System: Linux lightweb-s1 5.15.0-173-generic #183-Ubuntu SMP Fri Mar 6 13:29:34 UTC 2026 x86_64
User: dawonefr-98 (1071)
PHP: 8.3.30
Disabled: NONE
Upload Files
File: /home/dnlightw-124/dn.lightweb.kr/routes/web.php
<?php

use App\Services\InertiaRender;

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\File;
use Illuminate\Support\Facades\Route;
use RalphJSmit\Laravel\SEO\Support\SEOData;

foreach (config('tenancy.identification.central_domains') as $domain) {
//  로그인이 필요하지 않은 라우팅
    Route::domain($domain)->middleware([
        'frontend'
    ])->group(function (Router $router) {
        $router->get('/', function () {
            return InertiaRender::vue('Welcome',[],
                new SEOData(title: __('dn'))
            );
        })->name('home');
    });

//    사용자 인증이 필요한 central 라우팅
    Route::domain($domain)->middleware([
        'frontend',
        'auth:sanctum',
        config('jetstream.auth_session'),
        'verified',
    ])->group(function (Router $router) {

        Route::get('/dashboard', function () {
            return InertiaRender::vue('Dashboard');
        })->name('dashboard');

        $router->get('/terms-of-service', function () {
            $terms = File::exists(resource_path('markdown/terms.md'))
                ? File::get(resource_path('markdown/terms.md'))
                : 'Terms of Service';
            return InertiaRender::vue('TermsOfService', [
                'terms' => $terms,
            ], new SEOData(title: __('Terms of Service')));
        })->name('terms-of-service');

        $router->get('/privacy-policy', function () {
            $policy = File::exists(resource_path('markdown/policy.md'))
                ? File::get(resource_path('markdown/policy.md'))
                : 'Terms of Service';
            return InertiaRender::vue('PrivacyPolicy', [
                'policy' => $policy,
            ], new SEOData(title: __('Privacy Policy')));
        })->name('privacy-policy');
    });
}