<?php

use Illuminate\Support\Facades\Route;

Route::get('/', function () {
    return view('welcome');
});

Route::prefix('admin/docs')->group(function (): void {
    Route::get('integration-guide', function () {
        $adminDocs = rtrim(
            (string) env('LOTTERY_ADMIN_DOCS_URL', 'https://lotteryadmin.tanumo.com'),
            '/',
        );

        return redirect()->away($adminDocs.'/docs/integration');
    })->name('admin.docs.integration-guide');
});
