diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-08 12:11:36 +0100 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-08 12:11:36 +0100 |
commit | 6b220e094f215c488eb5102e25506f5b3d371245 (patch) | |
tree | be0abbbf7a0c881d61e6375626f197c4ae124001 /src/app.ts | |
parent | b8e424a8602b586bbf346cd27171ede570a54973 (diff) |
Refactor: event group form and API, extract JS
Diffstat (limited to 'src/app.ts')
-rwxr-xr-x | src/app.ts | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -5,6 +5,7 @@ import routes from "./routes.js"; 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 { initEmailService } from "./lib/email.js"; @@ -33,6 +34,9 @@ const hbsInstance = hbs.create({ match[1] + (match[3] || "s") ); // Plural case: 'bagel(s)' or 'bagel' --> bagels }, + json: function (context: any) { + return JSON.stringify(context); + }, }, }); app.engine("handlebars", hbsInstance.engine); @@ -52,6 +56,7 @@ app.use(express.urlencoded({ extended: true })); app.use("/", frontend); app.use("/", activitypub); app.use("/", event); +app.use("/", group); app.use("/", routes); export default app; |