Skip to content

Commit

Permalink
add filament-api plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
3x1io committed Jun 19, 2024
1 parent d418e78 commit 42470fb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Models/APIResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function getRows()
foreach ($page::registerAPIRoutes() as $item){
$routes[] = [
"method" => Str::of($item['method'])->upper()->toString(),
"slug" => config('filament-api.api_prefix').$item['slug'],
"slug" => config('filament-api.api_prefix').'/'.$item['slug'],
"name" => "filament.api.".$item['name'],
"table" => $item['table'],
"middleware" => json_encode($item['middleware']),
Expand Down

0 comments on commit 42470fb

Please sign in to comment.