Browse Source

Add function invocation to method example

bubble
shockey 7 years ago
committed by GitHub
parent
commit
5f8ffb870c
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      swagger-ui-dist-package/README.md

+ 1
- 1
swagger-ui-dist-package/README.md View File

@@ -14,7 +14,7 @@ Use `swagger-ui` instead, if you'd like to have npm install dependencies for you
To get an absolute path to this directory for static file serving, use the exported `getAbsoluteFSPath` method: To get an absolute path to this directory for static file serving, use the exported `getAbsoluteFSPath` method:


```javascript ```javascript
const swaggerUiAssetPath = require("swagger-ui-dist").getAbsoluteFSPath
const swaggerUiAssetPath = require("swagger-ui-dist").getAbsoluteFSPath()


// then instantiate server that serves files from the swaggerUiAssetPath // then instantiate server that serves files from the swaggerUiAssetPath
``` ```


Loading…
Cancel
Save