summary refs log tree commit diff
path: root/src/api/Server.ts
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2026-07-11 01:49:12 +0200
committerRory& <root@rory.gay>2026-07-11 01:49:12 +0200
commit3b27f08ba7d109e9cdbcbdaaf61f0c4742586269 (patch)
treeb71717d9f67b52b1c1eee92940773e7cde4b87cf /src/api/Server.ts
parentAdd manager class for JWT keypair to have a startup hook to avoid a race cond... (diff)
downloadserver-ts-3b27f08ba7d109e9cdbcbdaaf61f0c4742586269.tar.xz
API: expose assets/logo.png
Diffstat (limited to 'src/api/Server.ts')
-rw-r--r--src/api/Server.ts5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index 074dc779..83f73367 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts
@@ -145,6 +145,11 @@ export class SpacebarServer extends Server { return res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "index.html")); }); + app.get("/static/logo.png", (req, res) => { + res.set("Cache-Control", "public, max-age=21600"); + return res.sendFile(path.join(ASSETS_FOLDER, "logo.png")); + }); + app.get("/verify-email", (req, res) => { res.set("Cache-Control", "public, max-age=21600"); return res.sendFile(path.join(PUBLIC_ASSETS_FOLDER, "verify.html"));