Add thank-you page to ebook downloads

This commit is contained in:
Alex Cabal 2024-02-25 20:12:20 -06:00
parent 29fc6f9ff2
commit 9437beaee9
9 changed files with 222 additions and 16 deletions

15
lib/EbookFormat.php Normal file
View 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'
};
}
}