added front controller

added a controller class to handle what is being served when the browser
hits the root directory.

very basic to start as it is just a placeholder until it's filled out
This commit is contained in:
ro 2024-03-18 19:48:59 -06:00
parent a6b63ca551
commit 2420ea193c
No known key found for this signature in database
GPG key ID: 29B551CDBD4D3B50
2 changed files with 19 additions and 3 deletions

View file

@ -0,0 +1,17 @@
<?php
namespace App\Http\Controllers\Front;
use App\Http\Controllers\Controller;
class StartController extends Controller
{
public function __construct()
{
}
public function index()
{
return response()->file('../public/index.html');
}
}

View file

@ -3,6 +3,7 @@
use Illuminate\Support\Facades\Route; use Illuminate\Support\Facades\Route;
use App\Http\Controllers\Dash\IndexController; use App\Http\Controllers\Dash\IndexController;
use App\Http\Controllers\Dash\AuthController; use App\Http\Controllers\Dash\AuthController;
use App\Http\Controllers\Front\StartController;
use App\Http\Controllers\Theming\ThemeController; use App\Http\Controllers\Theming\ThemeController;
/* /*
@ -16,9 +17,7 @@ use App\Http\Controllers\Theming\ThemeController;
| |
*/ */
Route::get('/', function () { Route::get("/", [StartController::class, 'index']);
return view('welcome');
});
//DASHBOARD //DASHBOARD