Skip to content

Commit

Permalink
Shift logic to different internal helper
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Dec 18, 2023
1 parent 076c398 commit be553d7
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,11 @@ public function compile(): string

public static function outputPath(string $identifier = ''): string
{
return static::routeKey();
return RouteKey::fromPage(DocumentationPage::class, 'search').'.json';
}

public static function routeKey(): string
{
return RouteKey::fromPage(DocumentationPage::class, 'search').'.json';
return static::outputPath();
}
}

0 comments on commit be553d7

Please sign in to comment.