- /**
- * Export a book as a zip file, made of markdown files.
- */
- public function zip(string $bookSlug)
- {
- $book = $this->bookRepo->getBySlug($bookSlug);
- $filename = $this->exportService->bookToZip($book);
- return response()->download($filename);