]> BookStack Code Mirror - bookstack/commit
Themes: Added route to serve public theme files
authorDan Brown <redacted>
Mon, 13 Jan 2025 14:30:53 +0000 (14:30 +0000)
committerDan Brown <redacted>
Mon, 13 Jan 2025 14:34:44 +0000 (14:34 +0000)
commit593645acfe8521db97d7469c92546c8529703969
treeaaaa3cff97664be5725dc87ca803a8762312cee6
parentb9751807e7bad4b7d477b6977f630881f730abad
Themes: Added route to serve public theme files

Allows files to be placed within a "public" folder within a theme
directory which the contents of will served by BookStack for access.

- Only "web safe" content-types are provided.
- A static 1 day cache time it set on served files.

For #3904
12 files changed:
app/App/helpers.php
app/Exports/Controllers/BookExportController.php
app/Exports/Controllers/ChapterExportController.php
app/Exports/Controllers/PageExportController.php
app/Http/DownloadResponseFactory.php
app/Http/Middleware/PreventResponseCaching.php
app/Theming/ThemeController.php [new file with mode: 0644]
app/Theming/ThemeService.php
app/Uploads/FileStorage.php
app/Uploads/ImageStorageDisk.php
app/Util/FilePathNormalizer.php [new file with mode: 0644]
routes/web.php