mirror of
https://github.com/standardebooks/web.git
synced 2025-07-13 18:11:52 -04:00
Add thank-you page to ebook downloads
This commit is contained in:
parent
29fc6f9ff2
commit
9437beaee9
9 changed files with 222 additions and 16 deletions
15
lib/EbookFormat.php
Normal file
15
lib/EbookFormat.php
Normal file
|
@ -0,0 +1,15 @@
|
|||
<?
|
||||
|
||||
enum EbookFormat: string{
|
||||
case Epub = 'epub';
|
||||
case Azw3 = 'azw3';
|
||||
case Kepub = 'kepub';
|
||||
case AdvancedEpub = 'advanced-epub';
|
||||
|
||||
public function GetMimeType(): string{
|
||||
return match($this){
|
||||
self::Azw3 => 'application/x-mobi8-ebook',
|
||||
default => 'application/epub+zip'
|
||||
};
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue