This commit is contained in:
tanch0
2024-06-23 17:02:56 +05:45
parent 25760ad989
commit f85671cd4c
93 changed files with 2886 additions and 1579 deletions

View File

@ -2,40 +2,45 @@
use App\Http\Controllers\Auth\AuthenticationController;
use App\Http\Controllers\WebsiteController;
use App\Http\Middleware\PermissionMiddleware;
use Illuminate\Support\Facades\Route;
$ccms = new CCMS();
define('SITEVARS', CCMS::getSiteVars());
Route::get('/userlogin',[AuthenticationController::class, 'login'])->name("userLogin");
Route::withoutMiddleware([ PermissionMiddleware::class])->middleware(['web'])->group(function () {
Route::get('/userlogin', [AuthenticationController::class, 'login'])->name("userLogin");
Route::post('/postlogin',[AuthenticationController::class, 'authenticate'])->name("postLogin");
Route::post('/postlogin', [AuthenticationController::class, 'authenticate'])->name("postLogin");
Route::get('/userregister',[AuthenticationController::class,'register'])->name("userRegister");
Route::get('/userregister', [AuthenticationController::class, 'register'])->name("userRegister");
Route::post('/postresgistration',[AuthenticationController::class,'store'])->name("postresgistration");
Route::post('/postregistration', [AuthenticationController::class, 'store'])->name("postRegistration");
});
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");
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");
Route::get('/provinces/{id}',[WebsiteController::class,'showProvinces'])->name("showProvinces");
Route::get('/provinces/{id}', [WebsiteController::class, 'showProvinces'])->name("showProvinces");
Route::get('/contact',[WebsiteController::class,'showContact'])->name("contact");
Route::post('/sendEmail',[WebsiteController::class,'sendEmail'])->name("sendEmail");
Route::get('/contact', [WebsiteController::class, 'showContact'])->name("contact");
Route::post('/sendEmail', [WebsiteController::class, 'sendEmail'])->name("sendEmail");
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';
}
});
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';
}
});
});