middleware Locale use as global

This commit is contained in:
xiaomlove
2025-04-05 16:17:11 +07:00
parent 97dc956c20
commit 14767b1aca
7 changed files with 8 additions and 9 deletions
+1 -1
View File
@@ -15,7 +15,7 @@ use App\Enums\Permission\PermissionEnum;
|
*/
Route::group(['middleware' => ['auth:sanctum', 'locale']], function () {
Route::group(['middleware' => ['auth:sanctum']], function () {
Route::group(['middleware' => ['user']], function () {
Route::post('logout', [\App\Http\Controllers\AuthenticateController::class, 'logout']);
+1 -1
View File
@@ -1,7 +1,7 @@
<?php
use Illuminate\Support\Facades\Route;
Route::group(['middleware' => ['auth.nexus:passkey', 'locale']], function () {
Route::group(['middleware' => ['auth.nexus:passkey']], function () {
Route::post("pieces-hash", [\App\Http\Controllers\TorrentController::class, "queryByPiecesHash"])->name("torrent.pieces_hash.query");
});
+1 -1
View File
@@ -17,7 +17,7 @@ Route::get('/', function () {
return redirect('index.php');
});
Route::group(['prefix' => 'web', 'middleware' => ['auth.nexus:nexus-web', 'locale']], function () {
Route::group(['prefix' => 'web', 'middleware' => ['auth.nexus:nexus-web']], function () {
Route::get('torrent-approval-page', [\App\Http\Controllers\TorrentController::class, 'approvalPage']);
Route::get('torrent-approval-logs', [\App\Http\Controllers\TorrentController::class, 'approvalLogs']);
Route::post('torrent-approval', [\App\Http\Controllers\TorrentController::class, 'approval']);