-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.js
39 lines (26 loc) · 1.08 KB
/
index.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
import express from "express";
const app = express();
app.use(express.json());
import branchesRoutes from "./routes/branches.js";
app.use("/branches", branchesRoutes);
import customersRoutes from "./routes/customers.js";
app.use("/customers", customersRoutes);
import financesRoutes from "./routes/finances.js";
app.use("/finances", financesRoutes);
import maintenanceRoutes from "./routes/maintenance.js";
app.use("/maintenance", maintenanceRoutes);
import rolesRoutes from "./routes/roles.js";
app.use("/roles", rolesRoutes);
import salesRoutes from "./routes/sales.js";
app.use("/sales", salesRoutes);
import staffRoutes from "./routes/staff.js";
app.use("/staff", staffRoutes);
import stockRoutes from "./routes/stock.js";
app.use("/stock", stockRoutes);
import vehicleManufacturersRoutes from "./routes/vehicle-manufacturers.js";
app.use("/vehicle_manufacturers", vehicleManufacturersRoutes);
import vehiclesRoutes from "./routes/vehicles.js";
app.use("/vehicles", vehiclesRoutes);
import vinParseRoutes from "./routes/vin-parse.js";
app.use("/vin_parse", vinParseRoutes);
export default app;