summaryrefslogtreecommitdiff
path: root/goodgame/src/utils/swagger.js
blob: 7b1cf8064c80958c7bb150003173e29e3f403341 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const swaggerJSDoc = require('swagger-jsdoc');

const swaggerDefinition = {
  info: {
    title: 'Goodgame test / Roger Gonzalez',
    version: '0.0.1',
    description:
      'This is the REST Documentation for the Goodgame application test',
  },
  host: `${process.env.URL}`,
};

const options = {
  swaggerDefinition,
  apis: ['./src/docs/**/*.yaml'],
};

module.exports = swaggerJSDoc(options);