diff options
author | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-06 16:18:13 +0100 |
---|---|---|
committer | Raphael Kabo <raphaelkabo@hey.com> | 2023-10-06 16:19:08 +0100 |
commit | 115210bfd9a5ae7bb8b516ce0d2cf3d9042dead7 (patch) | |
tree | 5f982435fc68b004112b95418e8efba8fb6f200e /src/app.ts | |
parent | c64b6febe5298219858bdc7ad27c3dfa1117a4de (diff) |
refactor: frontend routes into TS file, new event path
Diffstat (limited to 'src/app.ts')
-rwxr-xr-x | src/app.ts | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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; |