mirror of
https://github.com/tiennm99/coolify.git
synced 2026-10-17 12:16:11 +00:00
Fix upgrade-status auth to use web session instead of sanctum
The endpoint is called from browser with session cookies, not API tokens. Use 'web' and 'auth' middleware for proper session-based authentication. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
abbfd60f1c
commit
43ede6c523
1 file changed
+2
-2
+2
-2
@@ -26,12 +26,12 @@ Route::group([
|
|||||||
});
|
});
|
||||||
|
|
||||||
Route::group([
|
Route::group([
|
||||||
'middleware' => ['auth:sanctum'],
|
'middleware' => ['web', 'auth'],
|
||||||
], function () {
|
], function () {
|
||||||
Route::get('/upgrade-status', [OtherController::class, 'upgradeStatus']);
|
Route::get('/upgrade-status', [OtherController::class, 'upgradeStatus']);
|
||||||
});
|
});
|
||||||
Route::group([
|
Route::group([
|
||||||
'middleware' => ['auth:sanctum'],
|
'middleware' => ['web', 'auth'],
|
||||||
'prefix' => 'v1',
|
'prefix' => 'v1',
|
||||||
], function () {
|
], function () {
|
||||||
Route::get('/upgrade-status', [OtherController::class, 'upgradeStatus']);
|
Route::get('/upgrade-status', [OtherController::class, 'upgradeStatus']);
|
||||||
|
|||||||
Reference in new issue
Block a user