master_template/routes/route.client.php

47 lines
2.2 KiB
PHP
Raw Permalink Normal View History

2024-06-10 12:21:58 +00:00
<?php
2024-06-13 15:17:05 +00:00
use App\Http\Controllers\Auth\AuthenticationController;
2024-06-10 12:21:58 +00:00
use App\Http\Controllers\WebsiteController;
2024-06-23 11:17:56 +00:00
use App\Http\Middleware\PermissionMiddleware;
2024-06-10 12:21:58 +00:00
use Illuminate\Support\Facades\Route;
2024-06-13 15:17:05 +00:00
$ccms = new CCMS();
define('SITEVARS', CCMS::getSiteVars());
2024-06-23 11:17:56 +00:00
Route::withoutMiddleware([ PermissionMiddleware::class])->middleware(['web'])->group(function () {
Route::get('/userlogin', [AuthenticationController::class, 'login'])->name("userLogin");
2024-06-13 15:17:05 +00:00
2024-06-23 11:17:56 +00:00
Route::post('/postlogin', [AuthenticationController::class, 'authenticate'])->name("postLogin");
2024-06-13 15:17:05 +00:00
2024-06-23 11:17:56 +00:00
Route::get('/userregister', [AuthenticationController::class, 'register'])->name("userRegister");
2024-06-10 12:21:58 +00:00
2024-06-23 11:17:56 +00:00
Route::post('/postregistration', [AuthenticationController::class, 'store'])->name("postRegistration");
});
2024-06-13 15:17:05 +00:00
2024-06-23 11:17:56 +00:00
Route::withoutMiddleware([PermissionMiddleware::class])->group(function () {
Route::get('/', [WebsiteController::class, 'home'])->name("home");
Route::get('/single/{alias}', [WebsiteController::class, 'single'])->name("single");
Route::get('/newsDetail/{alias}', [WebsiteController::class, 'newsDetail'])->name("newsDetail");
Route::get('/showHororscope', [WebsiteController::class, 'showHororscope'])->name("showHororscope");
Route::get('/international/{alias}', [WebsiteController::class, 'showInternational'])->name("showInternational");
Route::get('/showVideos', [WebsiteController::class, 'showVideos'])->name("showVideos");
Route::get('/videoDetail/{alias}', [WebsiteController::class, 'videoDetail'])->name("videoDetail");
Route::get('/aboutus/{alias}', [WebsiteController::class, 'showAboutus'])->name("showAboutus");
Route::get('/article/{alias}', [WebsiteController::class, 'showArtilce'])->name("showArtilce");
2024-06-18 05:46:51 +00:00
2024-06-23 11:17:56 +00:00
Route::get('/provinces/{id}', [WebsiteController::class, 'showProvinces'])->name("showProvinces");
2024-06-18 05:46:51 +00:00
2024-06-23 11:17:56 +00:00
Route::get('/contact', [WebsiteController::class, 'showContact'])->name("contact");
Route::post('/sendEmail', [WebsiteController::class, 'sendEmail'])->name("sendEmail");
2024-06-18 05:46:51 +00:00
2024-06-23 11:17:56 +00:00
Route::get('/phpinfo', function () {
$inipath = php_ini_loaded_file();
if ($inipath) {
echo 'Loaded php.ini: ' . $inipath;
} else {
echo 'A php.ini file is not loaded';
}
});
});