From ee84978ad72fd6f1c566555ff58b5507338d9cc6 Mon Sep 17 00:00:00 2001 From: dogukanoksuz Date: Thu, 28 Sep 2023 08:33:01 +0000 Subject: [PATCH] feature: Disabled unnecessary endpoints on old liman --- routes/web.php | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/routes/web.php b/routes/web.php index 9086fc5b..a18eff0d 100644 --- a/routes/web.php +++ b/routes/web.php @@ -3,13 +3,18 @@ use Illuminate\Http\Request; use Illuminate\Support\Facades\Route; -// Auth Routes -require_once app_path('Http/Controllers/Auth/_routes.php'); +Route::any("/", function () { + return redirect("/api"); +})->name('home'); // HA Routes require_once app_path('Http/Controllers/HASync/_routes.php'); +// Auth Routes +// require_once app_path('Http/Controllers/Auth/_routes.php'); + Route::group(['middleware' => ['auth', 'check_google_two_factor', 'google2fa', 'permissions']], function () { + /* // Extension Routes require_once app_path('Http/Controllers/Extension/_routes.php'); @@ -37,11 +42,13 @@ // Role Routes require_once app_path('Http/Controllers/Roles/_routes.php'); + */ // Internal Sandbox Routes require_once app_path('Http/Controllers/Extension/Sandbox/_routes.php'); + /* // Change the language Route::get('/locale', 'HomeController@setLocale')->name('set_locale'); @@ -114,6 +121,7 @@ ); Route::get('/liman_arama', 'SearchController@search')->name('search'); + */ }); Route::any('/upload/{any?}', function () { @@ -163,7 +171,7 @@ return $info; })->middleware(['upload_token_check']); -registerModuleRoutes(); +// registerModuleRoutes(); Route::get('/bildirimYolla', 'Notification\ExternalNotificationController@accept');