comparison api/server/ui/index.js @ 169:9fcfccb18b16

feat: Added draft version of API specification for server Open API specification available under /api/server UI version served with yarn swagger from client folder - port 5000
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 10 Jul 2018 10:36:50 +0200
parents
children
comparison
equal deleted inserted replaced
168:e4e4a0e6338e 169:9fcfccb18b16
1 try {
2 module.exports.SwaggerUIBundle = require("./swagger-ui-bundle.js")
3 module.exports.SwaggerUIStandalonePreset = require("./swagger-ui-standalone-preset.js")
4 } catch(e) {
5 // swallow the error if there's a problem loading the assets.
6 // allows this module to support providing the assets for browserish contexts,
7 // without exploding in a Node context.
8 //
9 // see https://github.com/swagger-api/swagger-ui/issues/3291#issuecomment-311195388
10 // for more information.
11 }
12
13 // `absolutePath` and `getAbsoluteFSPath` are both here because at one point,
14 // we documented having one and actually implemented the other.
15 // They were both retained so we don't break anyone's code.
16 module.exports.absolutePath = require("./absolute-path.js")
17 module.exports.getAbsoluteFSPath = require("./absolute-path.js")