Node
This commit is contained in:
+1
-1
@@ -8,7 +8,7 @@ const YAML = require('yamljs');
|
||||
const apiRouter = require('./routes/api');
|
||||
|
||||
const app = express();
|
||||
const openApiPath = path.resolve(__dirname, '../webroot/openapi.yaml');
|
||||
const openApiPath = path.resolve(__dirname, 'openapi.yaml');
|
||||
const openApiDocument = YAML.parse(fs.readFileSync(openApiPath, 'utf8'));
|
||||
|
||||
app.disable('x-powered-by');
|
||||
|
||||
Reference in New Issue
Block a user