summaryrefslogtreecommitdiff
path: root/src/app.ts
diff options
context:
space:
mode:
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;