location update optimized with schema changes and geoJson Compatability testing endpoint with encrypted key authorization
This commit is contained in:
@@ -11,7 +11,7 @@ import swaggerUi from "swagger-ui-express";
|
||||
import swaggerDoc from "./documentation/documentation.json";
|
||||
import getSwaggerDocument from "./documentation";
|
||||
// import socketState from "./state/socketState.js";
|
||||
import { AdminRoutes, UserRoutes } from "./routes";
|
||||
import { AdminRoutes, UserRoutes, LocationRoutes } from "./routes";
|
||||
|
||||
dotenv.config();
|
||||
|
||||
@@ -43,6 +43,7 @@ app.use(express.json());
|
||||
app.use("/v0/docs", swaggerUi.serve, swaggerUi.setup(swaggerDoc));
|
||||
app.use("/v0/user", UserRoutes);
|
||||
app.use("/v0/admin", AdminRoutes);
|
||||
app.use("/v0/location", LocationRoutes);
|
||||
|
||||
app.use((err, req, res, next) => {
|
||||
const statusCode = err.status || 500;
|
||||
|
||||
Reference in New Issue
Block a user