Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
495 B
1
Indexable
Never
import express from "express";
import itemRouter from "./routes/item.route";
import billRouter from "./routes/bill.route";
import customerRouter from "./routes/customer.route";
const app = express();

app.use(express.json());
app.use(express.urlencoded({ extended: true }));

app.get("/", (req, res) => {
  res.send("Welcome to Team 6 API");
});
app.use("/api/items", itemRouter);
app.use("/api/bills", billRouter);
app.use("/api/customers", customerRouter);
export default app;