Skip to content

Commit

Permalink
feature: Disabled unnecessary endpoints on old liman
Browse files Browse the repository at this point in the history
  • Loading branch information
dogukanoksuz committed Sep 28, 2023
1 parent 7fdfdf2 commit ee84978
Showing 1 changed file with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions routes/web.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down Expand Up @@ -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');
Expand Down Expand Up @@ -114,6 +121,7 @@
);
Route::get('/liman_arama', 'SearchController@search')->name('search');
*/
});

Route::any('/upload/{any?}', function () {
Expand Down Expand Up @@ -163,7 +171,7 @@
return $info;
})->middleware(['upload_token_check']);

registerModuleRoutes();
// registerModuleRoutes();

Route::get('/bildirimYolla', 'Notification\ExternalNotificationController@accept');

Expand Down

0 comments on commit ee84978

Please sign in to comment.