Skip to content

Commit

Permalink
Fix /api-docs/ swagger definition load
Browse files Browse the repository at this point in the history
Issue #544
  • Loading branch information
sbs20 committed Feb 4, 2023
1 parent cda9d04 commit d2ed0df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/server/src/configure.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const express = require('express');
const basicAuth = require('express-basic-auth');
const fs = require('fs');
const path = require('path');
const rootLog = require('loglevel');
const prefix = require('loglevel-plugin-prefix');
const swaggerJsdoc = require('swagger-jsdoc');
Expand Down Expand Up @@ -105,8 +106,7 @@ function configure(app, rootPath) {
},
},
apis: [
// Works for normal operation as well as development
'../server/src/swagger.yml'
path.join(__dirname, 'swagger.yml')
],
});

Expand Down

0 comments on commit d2ed0df

Please sign in to comment.