Skip to content

Commit

Permalink
Update src/Writing/Writer.php
Browse files Browse the repository at this point in the history
Co-authored-by: Shalvah <[email protected]>
  • Loading branch information
cleeimpro and shalvah authored Oct 31, 2024
1 parent ca019f4 commit 3ad4f1e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Writing/Writer.php
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ protected function performFinalTasksForLaravelType(): void
$contents = str_replace('href="../docs/collection.json"', 'href="{{ route("' . $this->paths->outputPath('postman', '.') . '") }}"', $contents);
$contents = str_replace('href="../docs/openapi.yaml"', 'href="{{ route("' . $this->paths->outputPath('openapi', '.') . '") }}"', $contents);
$contents = str_replace('url="../docs/openapi.yaml"', 'url="{{ route("' . $this->paths->outputPath('openapi', '.') . '") }}"', $contents);
// With Elements theme, we'd have <elements-api apiDescriptionUrl="../docs/openapi.yaml"
$contents = str_replace('Url="../docs/openapi.yaml"', 'Url="{{ route("' . $this->paths->outputPath('openapi', '.') . '") }}"', $contents);

file_put_contents("$this->laravelTypeOutputPath/index.blade.php", $contents);
Expand Down

0 comments on commit 3ad4f1e

Please sign in to comment.