summaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
authorRaphael Kabo <raphaelkabo@hey.com>2023-10-06 16:18:13 +0100
committerRaphael Kabo <raphaelkabo@hey.com>2023-10-06 16:19:08 +0100
commit115210bfd9a5ae7bb8b516ce0d2cf3d9042dead7 (patch)
tree5f982435fc68b004112b95418e8efba8fb6f200e /src/app.ts
parentc64b6febe5298219858bdc7ad27c3dfa1117a4de (diff)
refactor: frontend routes into TS file, new event path
Diffstat (limited to 'src/app.ts')
-rwxr-xr-xsrc/app.ts5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/app.ts b/src/app.ts
index 32e89b6..f49092c 100755
--- a/src/app.ts
+++ b/src/app.ts
@@ -1,7 +1,9 @@
import express from "express";
-import routes from "./routes.js";
import hbs from "express-handlebars";
+import routes from "./routes.js";
+import frontend from "./routes/frontend.js";
+
const app = express();
// View engine //
@@ -39,6 +41,7 @@ app.use(express.json({ type: "application/activity+json" })); // support json en
app.use(express.urlencoded({ extended: true }));
// Router //
+app.use("/", frontend);
app.use("/", routes);
export default app;