diff options
| author | winter | 2025-05-03 16:34:03 +0100 |
|---|---|---|
| committer | winter | 2025-05-03 16:34:03 +0100 |
| commit | 2f3377290a9478aff1c43558167fe8566787bc3a (patch) | |
| tree | 2d61d2d97fea8352d1aadbd8d97ff1f7186ccde6 /routes | |
| parent | 0310ab4e341365071d62e5449b31614022034b60 (diff) | |
add customisation setting for instance-wide css
Diffstat (limited to 'routes')
| -rw-r--r-- | routes/customisation.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/routes/customisation.php b/routes/customisation.php new file mode 100644 index 0000000..536684f --- /dev/null +++ b/routes/customisation.php @@ -0,0 +1,9 @@ +<?php + +use Digitigrade\GlobalSettings; +use Digitigrade\Router; + +Router::getInstance()->mount('/instance-style.css', function () { + header('Content-Type: text/css'); + echo GlobalSettings::getInstance()->get('customisation.instanceCss') ?? ''; +});
\ No newline at end of file |
