mirror of
https://github.com/jez500/pricebuddy.git
synced 2026-11-24 19:58:13 +01:00
Redesign API key creation and enforce scoped abilities on the custom API routes. - ApiAbility enum and ability enforcement on the custom API routes - Redesigned API key creation: current user, all/custom permissions, and a dedicated one-time token page with a non-HTTPS clipboard fallback - Restrict custom keys to a known ability allowlist - Link global search results to the product view page rather than the edit page
18 lines
330 B
PHP
18 lines
330 B
PHP
<?php
|
|
|
|
namespace App\Filament\Plugins;
|
|
|
|
use App\Filament\Resources\ApiKeyResource;
|
|
use Filament\Panel;
|
|
use Rupadana\ApiService\ApiServicePlugin;
|
|
|
|
class ApiKeyPlugin extends ApiServicePlugin
|
|
{
|
|
public function register(Panel $panel): void
|
|
{
|
|
$panel->resources([
|
|
ApiKeyResource::class,
|
|
]);
|
|
}
|
|
}
|