Fix middleware class collision (RadioApiKey -> alias), add missing setup.do and setup.reset routes, fix SSE int type cast

This commit is contained in:
root
2026-05-24 14:20:22 +02:00
parent 261a5e63c6
commit eea81a3e9a
3 changed files with 26 additions and 2 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ declare(strict_types=1);
namespace App\Http\Middleware;
use App\Models\RadioApiKey;
use App\Models\RadioApiKey as RadioApiKeyModel;
use Closure;
use Illuminate\Http\Request;
use Symfony\Component\HttpFoundation\Response;
@@ -21,7 +21,7 @@ class RadioApiKey
], 401);
}
$apiKey = RadioApiKey::active()->where('key', $key)->first();
$apiKey = RadioApiKeyModel::active()->where('key', $key)->first();
if (! $apiKey) {
return response()->json([