Add public API v1 with API key auth, rate limiting, and docs page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Sonnet 4.6
parent
68d01448d2
commit
a583a13da1
@@ -0,0 +1,14 @@
|
||||
<?php
|
||||
|
||||
namespace App\Policies;
|
||||
|
||||
use App\Models\ApiKey;
|
||||
use App\Models\User;
|
||||
|
||||
class ApiKeyPolicy
|
||||
{
|
||||
public function delete(User $user, ApiKey $apiKey): bool
|
||||
{
|
||||
return $user->id === $apiKey->user_id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user