forked from loafle/openapi-generator-original
[NodeJS] nodejs-express-server fix /api-docs path (#6977)
This commit is contained in:
parent
1cfa8141a8
commit
383b1e9db8
@ -37,7 +37,7 @@ class ExpressServer {
|
||||
//Send the openapi document *AS GENERATED BY THE GENERATOR*
|
||||
this.app.get('/openapi', (req, res) => res.sendFile((path.join(__dirname, 'api', 'openapi.yaml'))));
|
||||
//View the openapi document in a visual interface. Should be able to test from this page
|
||||
this.app.use('/api-doc', swaggerUI.serve, swaggerUI.setup(this.schema));
|
||||
this.app.use('/api-docs', swaggerUI.serve, swaggerUI.setup(this.schema));
|
||||
this.app.get('/login-redirect', (req, res) => {
|
||||
res.status(200);
|
||||
res.json(req.query);
|
||||
|
@ -37,7 +37,7 @@ class ExpressServer {
|
||||
//Send the openapi document *AS GENERATED BY THE GENERATOR*
|
||||
this.app.get('/openapi', (req, res) => res.sendFile((path.join(__dirname, 'api', 'openapi.yaml'))));
|
||||
//View the openapi document in a visual interface. Should be able to test from this page
|
||||
this.app.use('/api-doc', swaggerUI.serve, swaggerUI.setup(this.schema));
|
||||
this.app.use('/api-docs', swaggerUI.serve, swaggerUI.setup(this.schema));
|
||||
this.app.get('/login-redirect', (req, res) => {
|
||||
res.status(200);
|
||||
res.json(req.query);
|
||||
|
Loading…
x
Reference in New Issue
Block a user