23 lines
618 B
TypeScript
23 lines
618 B
TypeScript
import express from "express";
|
|
import cors from "cors";
|
|
import helmet from "helmet";
|
|
import wapRoutes from "./routes/wap.routes";
|
|
import usersRoutes from "./routes/users.routes";
|
|
import companiesRoutes from "./routes/companies.routes";
|
|
import servicesRoutes from "./routes/services.routes";
|
|
import plansRoutes from "./routes/plans.routes";
|
|
|
|
const app = express();
|
|
|
|
app.use(helmet());
|
|
app.use(cors());
|
|
app.use(express.json());
|
|
|
|
app.use("/wap", wapRoutes);
|
|
app.use("/users", usersRoutes);
|
|
app.use("/companies", companiesRoutes);
|
|
app.use("/services", servicesRoutes);
|
|
app.use("/plans", plansRoutes);
|
|
|
|
export default app;
|