From 89bcdd759c986b2616d79bec51b8f120c812d901 Mon Sep 17 00:00:00 2001 From: d98762625 Date: Wed, 12 Feb 2020 13:31:02 +0000 Subject: [PATCH] split out swagger middleware --- .gitignore | 2 ++ app.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index d1bed12..9ad10f3 100644 --- a/.gitignore +++ b/.gitignore @@ -59,3 +59,5 @@ typings/ # next.js build output .next + +.vscode \ No newline at end of file diff --git a/app.js b/app.js index d264472..62fda22 100644 --- a/app.js +++ b/app.js @@ -40,7 +40,8 @@ app.use("/bake", bakeRouter); // Default route -app.get("/", swaggerUi.serve, swaggerUi.setup(YAML.parse(swaggerFile))); +app.use("/", swaggerUi.serve); +app.get("/", swaggerUi.setup(YAML.parse(swaggerFile))); // Error handling - place after all other middleware and routes