Skip to content

Commit 9623f70

Browse files
committed
added basePath to readme
1 parent 1b4f3d6 commit 9623f70

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

README.md

+3
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,8 @@ Configure {swagger-express} as express middleware.
2626

2727
`swaggerJSON` -> Path to use for swagger ui JSON.
2828

29+
`basePath` -> (optional) The basePath for swagger.js
30+
2931
`apis` -> Define your api array.
3032

3133
```
@@ -39,6 +41,7 @@ app.configure(function(){
3941
swaggerURL: '/swagger',
4042
swaggerJSON: '/api-docs.json',
4143
swaggerUI: './public/swagger/',
44+
basePath: 'http://localhost:3000',
4245
apis: ['./api.js', './api.yml']
4346
}));
4447
app.use(app.router);

0 commit comments

Comments
 (0)