mirror of
https://github.com/spacebarchat/server.git
synced 2026-10-22 13:12:19 +00:00
API: expose assets/logo.png
This commit is contained in:
1 parent
a5f4258647
commit
3b27f08ba7
1 file changed
+5
@@ -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"));
|
||||
|
||||
Reference in new issue
Block a user