feat: implement MainForm component and set up routing; add user table schema and trigger in SQL
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
import express from "express";
|
||||
import cors from "cors";
|
||||
import defaultRouter from "./routes/default/frontend.route.js";
|
||||
import dotenv from "dotenv";
|
||||
dotenv.config();
|
||||
|
||||
const app = express();
|
||||
const PORT = process.env.PORT;
|
||||
@@ -9,6 +12,8 @@ app.use(cors());
|
||||
app.use(express.json());
|
||||
app.use(express.urlencoded({ extended: true }));
|
||||
|
||||
app.use("/default", defaultRouter);
|
||||
|
||||
app.get("/", (req, res) => {
|
||||
res.render("index");
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user