Files
Global-Jain/routes/web.php

57 lines
1.7 KiB
PHP
Raw Permalink Normal View History

2025-11-05 10:37:10 +05:30
<?php
use Illuminate\Support\Facades\Route;
use App\Http\Controllers\BaseController;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//Web routes
Route::domain(env('ADMIN_APP_URL'))->group(function () {
Route::group([
'prefix' => '',
'as' => 'admin.',
'namespace' => ''
], function () {
/**
* without auth admin routes.
*/
includeRouteFiles(__DIR__ . '/admin/without_auth');
/**
* with auth admin routes.
*/
Route::group([
'prefix' => 'admin',
'middleware' => [
'web',
'auth'
]
], function () {
includeRouteFiles(__DIR__ . '/admin/with_auth');
});
});
});
// Auth::routes();
Route::get('/', [BaseController::class,'getLandingPage'])->name('get-global-jain-n');
Route::get('/page/post-detail/{id}', [BaseController::class,'getLandingPageWithMeta'])->name('get-global-jain-meta');
Route::get('terms-and-conditions', [BaseController::class,'getTermsAndConditionsPage'])->name('terms-and-conditions');
Route::get('privacy-policy', [BaseController::class,'getPrivacyPolicyPage'])->name('privacy-policy');
Route::get('contribution', [BaseController::class,'getContributionPage'])->name('contribution');
Route::get('/.well-known/apple-app-site-association', [BaseController::class,'getAppleAppSiteID']);
Route::get('/home', [App\Http\Controllers\HomeController::class, 'index'])->name('home');