Skip to content

Commit 4ab1715

Browse files
committed
API: Added ZIP export endpoint comments
1 parent 6d7ffab commit 4ab1715

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

app/Exports/Controllers/BookExportApiController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function exportMarkdown(int $id)
6666
}
6767

6868
/**
69-
* Export a book to a contained ZIP export file.
69+
* Export a book as a contained ZIP export file.
7070
*/
7171
public function exportZip(int $id, ZipExportBuilder $builder)
7272
{

app/Exports/Controllers/ChapterExportApiController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public function exportMarkdown(int $id)
6565
return $this->download()->directly($markdown, $chapter->slug . '.md');
6666
}
6767

68+
/**
69+
* Export a chapter as a contained ZIP file.
70+
*/
6871
public function exportZip(int $id, ZipExportBuilder $builder)
6972
{
7073
$chapter = $this->queries->findVisibleByIdOrFail($id);

app/Exports/Controllers/PageExportApiController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,9 @@ public function exportMarkdown(int $id)
6565
return $this->download()->directly($markdown, $page->slug . '.md');
6666
}
6767

68+
/**
69+
* Export a page as a contained ZIP file.
70+
*/
6871
public function exportZip(int $id, ZipExportBuilder $builder)
6972
{
7073
$page = $this->queries->findVisibleByIdOrFail($id);

0 commit comments

Comments
 (0)