Skip to content

Instantly share code, notes, and snippets.

@dimitardanailov
Last active September 9, 2018 12:53
Show Gist options
  • Save dimitardanailov/2ae8c7e41cb23e89ee8cad25f26cd56a to your computer and use it in GitHub Desktop.
Save dimitardanailov/2ae8c7e41cb23e89ee8cad25f26cd56a to your computer and use it in GitHub Desktop.
Example: IBM NodeServer Generator - Swagger Routes
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