removed Routes, Introduced Single Route with Cecking
This commit is contained in:
10
src/index.ts
10
src/index.ts
@@ -13,7 +13,6 @@ import adminRoutes from "./routes/admin";
|
||||
import corsPlugin from "./plugins/cors";
|
||||
import queryConfigPlugin from "./plugins/queryconfig";
|
||||
import dbPlugin from "./plugins/db";
|
||||
import resourceRoutes from "./routes/resources";
|
||||
import resourceRoutesSpecial from "./routes/resourcesSpecial";
|
||||
import fastifyCookie from "@fastify/cookie";
|
||||
import historyRoutes from "./routes/history";
|
||||
@@ -31,9 +30,9 @@ import staffTimeRoutes from "./routes/staff/time";
|
||||
import staffTimeConnectRoutes from "./routes/staff/timeconnects";
|
||||
|
||||
//Resources
|
||||
import customerRoutes from "./routes/resources/customers";
|
||||
import vendorRoutes from "./routes/resources/vendors";
|
||||
import productsAndServicesRoutes from "./routes/resources/productsServices";
|
||||
|
||||
import resourceRoutes from "./routes/resources/main";
|
||||
|
||||
//M2M
|
||||
import authM2m from "./plugins/auth.m2m";
|
||||
@@ -104,7 +103,6 @@ async function main() {
|
||||
await subApp.register(meRoutes);
|
||||
await subApp.register(tenantRoutes);
|
||||
await subApp.register(adminRoutes);
|
||||
await subApp.register(resourceRoutes);
|
||||
await subApp.register(resourceRoutesSpecial);
|
||||
await subApp.register(historyRoutes);
|
||||
await subApp.register(fileRoutes);
|
||||
@@ -120,8 +118,8 @@ async function main() {
|
||||
await subApp.register(staffTimeConnectRoutes);
|
||||
|
||||
|
||||
await subApp.register(customerRoutes);
|
||||
await subApp.register(vendorRoutes);
|
||||
await subApp.register(productsAndServicesRoutes);
|
||||
await subApp.register(resourceRoutes);
|
||||
|
||||
},{prefix: "/api"})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user