Skip to content

Commit

Permalink
build: fix swagger
Browse files Browse the repository at this point in the history
  • Loading branch information
AlasDiablo committed Feb 9, 2024
1 parent 0e4d0e4 commit 595bc68
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
2 changes: 0 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,6 @@ WORKDIR /app
COPY --chown=daemon:daemon --from=express-build /app/package.json /app/
COPY --chown=daemon:daemon --from=express-build /app/package-lock.json /app/
COPY --chown=daemon:daemon --from=node-modules /app/node_modules /app/node_modules/
COPY --chown=daemon:daemon --from=express-build /app/swagger-config.json /app/
COPY --chown=daemon:daemon --from=express-build /app/swagger.json /app/
COPY --chown=daemon:daemon --from=express-build /app/config/default.json /app/config/
COPY --chown=daemon:daemon --from=express-build /app/dist /app/

Expand Down
2 changes: 1 addition & 1 deletion tdm-be/src/app.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import environment from './lib/config';
import logger, { httpLogger, cronLogger } from './lib/logger';
import swaggerFile from './swagger/swagger-config.json';
import express from 'express';
import fs from 'node:fs';

Expand All @@ -9,7 +10,6 @@ const dataEnrichmentRoute = require('./controller/data-enrichment');
const dataWrapperRoute = require('./controller/data-wrapper');
const traitmentRoute = require('./controller/traitment');
const webhookRoute = require('./controller/webhook');
const swaggerFile = require('./swagger/swagger-config.json');
const cors = require('cors');
const basicAuth = require('express-basic-auth'); // This package is used for basic authentication
const cron = require('node-cron');
Expand Down

0 comments on commit 595bc68

Please sign in to comment.