feat(leases): added in leases and move table to reuseable component
This commit is contained in:
@@ -1,9 +1,14 @@
|
||||
import type { Express, Request, Response } from "express";
|
||||
import { requireAuth } from "../../../pkg/middleware/authMiddleware.js";
|
||||
import companies from "./companies/companiesRoutes.js";
|
||||
import leases from "./leases/leaseRoutes.js";
|
||||
export const setupForkliftRoutes = (app: Express, basePath: string) => {
|
||||
app.use(
|
||||
basePath + "/api/forklifts/companies", // will pass bc system admin but this is just telling us we need this
|
||||
companies,
|
||||
);
|
||||
app.use(
|
||||
basePath + "/api/forklifts/leases", // will pass bc system admin but this is just telling us we need this
|
||||
leases,
|
||||
);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user