9 lines
221 B
JavaScript
9 lines
221 B
JavaScript
const swaggerAutogen = require('swagger-autogen')();
|
|
|
|
const outputFile = './swagger.json';
|
|
const endpointsFiles = ['./api/routes.js']
|
|
|
|
swaggerAutogen(outputFile, endpointsFiles).then(() => {
|
|
require('./server.js')
|
|
})
|