remove v1 dir
This commit is contained in:
1 parent
4957209307
commit
952c70fca4
16 files changed
+14
-14
No files matched your search
+3
-3
@@ -5,10 +5,10 @@ import helmet from "helmet";
|
|||||||
import compression from "compression";
|
import compression from "compression";
|
||||||
import cookieParser from "cookie-parser";
|
import cookieParser from "cookie-parser";
|
||||||
import swaggerUi from "swagger-ui-express";
|
import swaggerUi from "swagger-ui-express";
|
||||||
import { handleErrors } from "./middleware/v1/handleErrors.js";
|
import { handleErrors } from "./middleware/handleErrors.js";
|
||||||
import { setupRoutes } from "./config/routes.js";
|
import { setupRoutes } from "./config/routes.js";
|
||||||
import { generalApiLimiter } from "./middleware/v1/rateLimiter.js";
|
import { generalApiLimiter } from "./middleware/rateLimiter.js";
|
||||||
import { sanitizeBody, sanitizeQuery } from "./middleware/v1/sanitization.js";
|
import { sanitizeBody, sanitizeQuery } from "./middleware/sanitization.js";
|
||||||
|
|
||||||
export const createApp = ({ services, controllers, envSettings, frontendPath, openApiSpec }) => {
|
export const createApp = ({ services, controllers, envSettings, frontendPath, openApiSpec }) => {
|
||||||
const allowedOrigin = envSettings.clientHost;
|
const allowedOrigin = envSettings.clientHost;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { createVerifyJWT } from "../middleware/v1/verifyJWT.js";
|
import { createVerifyJWT } from "../middleware/verifyJWT.js";
|
||||||
import { authApiLimiter } from "../middleware/v1/rateLimiter.js";
|
import { authApiLimiter } from "../middleware/rateLimiter.js";
|
||||||
|
|
||||||
import AuthRoutes from "../routes/v1/authRoute.js";
|
import AuthRoutes from "../routes/v1/authRoute.js";
|
||||||
import InviteRoutes from "../routes/v1/inviteRoute.js";
|
import InviteRoutes from "../routes/v1/inviteRoute.js";
|
||||||
|
|||||||
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
@@ -1,5 +1,5 @@
|
|||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import { isAllowed } from "../../middleware/v1/isAllowed.js";
|
import { isAllowed } from "../../middleware/isAllowed.js";
|
||||||
import multer from "multer";
|
import multer from "multer";
|
||||||
|
|
||||||
const upload = multer();
|
const upload = multer();
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
|
|
||||||
import { isAllowed } from "../../middleware/v1/isAllowed.js";
|
import { isAllowed } from "../../middleware/isAllowed.js";
|
||||||
|
|
||||||
class CheckRoutes {
|
class CheckRoutes {
|
||||||
constructor(checkController) {
|
constructor(checkController) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import { isAllowed } from "../../middleware/v1/isAllowed.js";
|
import { isAllowed } from "../../middleware/isAllowed.js";
|
||||||
|
|
||||||
class DiagnosticRoutes {
|
class DiagnosticRoutes {
|
||||||
constructor(diagnosticController, verifyJWT) {
|
constructor(diagnosticController, verifyJWT) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import { isAllowed } from "../../middleware/v1/isAllowed.js";
|
import { isAllowed } from "../../middleware/isAllowed.js";
|
||||||
|
|
||||||
class IncidentRoutes {
|
class IncidentRoutes {
|
||||||
constructor(incidentController) {
|
constructor(incidentController) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import { isAllowed } from "../../middleware/v1/isAllowed.js";
|
import { isAllowed } from "../../middleware/isAllowed.js";
|
||||||
|
|
||||||
class InviteRoutes {
|
class InviteRoutes {
|
||||||
constructor(inviteController, verifyJWT) {
|
constructor(inviteController, verifyJWT) {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import { isAllowed } from "../../middleware/v1/isAllowed.js";
|
import { isAllowed } from "../../middleware/isAllowed.js";
|
||||||
class LogRoutes {
|
class LogRoutes {
|
||||||
constructor(logController) {
|
constructor(logController) {
|
||||||
this.router = Router();
|
this.router = Router();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import { isAllowed } from "../../middleware/v1/isAllowed.js";
|
import { isAllowed } from "../../middleware/isAllowed.js";
|
||||||
import multer from "multer";
|
import multer from "multer";
|
||||||
import { fetchMonitorCertificate } from "../../controllers/controllerUtils.js";
|
import { fetchMonitorCertificate } from "../../controllers/controllerUtils.js";
|
||||||
const upload = multer({
|
const upload = multer({
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import { isAllowed } from "../../middleware/v1/isAllowed.js";
|
import { isAllowed } from "../../middleware/isAllowed.js";
|
||||||
class QueueRoutes {
|
class QueueRoutes {
|
||||||
constructor(queueController) {
|
constructor(queueController) {
|
||||||
this.router = Router();
|
this.router = Router();
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { Router } from "express";
|
import { Router } from "express";
|
||||||
import { isAllowed } from "../../middleware/v1/isAllowed.js";
|
import { isAllowed } from "../../middleware/isAllowed.js";
|
||||||
|
|
||||||
class SettingsRoutes {
|
class SettingsRoutes {
|
||||||
constructor(settingsController) {
|
constructor(settingsController) {
|
||||||
|
|||||||
Reference in new issue
Block a user