diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-09 10:48:10 +0100 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-09 10:48:10 +0100 |
commit | 8b33335584afbac74388c4ed16ff1ff7a04e3588 (patch) | |
tree | bc35e2e96695a56780139856dfd1f5267546193f /src/app.ts | |
parent | 8a1f07b11e8e18243c058149ac58ece7766b7ef3 (diff) |
Add static page config and handler
Diffstat (limited to 'src/app.ts')
-rwxr-xr-x | src/app.ts | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -6,6 +6,7 @@ import frontend from "./routes/frontend.js"; import activitypub from "./routes/activitypub.js"; import event from "./routes/event.js"; import group from "./routes/group.js"; +import staticPages from "./routes/static.js"; import { initEmailService } from "./lib/email.js"; @@ -53,6 +54,7 @@ app.use(express.json({ type: "application/json" })); app.use(express.urlencoded({ extended: true })); // Router // +app.use("/", staticPages); app.use("/", frontend); app.use("/", activitypub); app.use("/", event); |