mirror of
https://github.com/standardebooks/web.git
synced 2025-07-04 22:00:35 -04:00
This commit adds a rewrite rule for ebook downloads of the form: ``` /ebooks/some-author/some-book/downloads/some-filename.epub ``` to `www/ebooks/download.php`. That file handles the logic of whether to show a thank you page before beginning the download. Download URLs in RSS, Atom, and OPDS feeds follow the same pattern, but they have a query string parameter `?source=feed` to always skip the thank you page.
7 lines
111 B
PHP
7 lines
111 B
PHP
<?
|
|
namespace Enums;
|
|
|
|
enum EbookDownloadSource: string{
|
|
case Feed = 'feed';
|
|
case DownloadPage = 'download';
|
|
}
|