Last active
September 9, 2018 12:53
-
-
Save dimitardanailov/2ae8c7e41cb23e89ee8cad25f26cd56a to your computer and use it in GitHub Desktop.
Example: IBM NodeServer Generator - Swagger Routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import express = require("express"); | |
module.exports = (app) => { | |
const router = express.Router(); | |
app.use("/swagger/api", express.static("./public/swagger.yaml")); | |
app.use("/explorer", express.static("./public/swagger-ui")); | |
app.use(router); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment