From 5e59f53462fa1fb0e769f2cee177f77adec3ed42 Mon Sep 17 00:00:00 2001 From: Moonded Date: Tue, 27 Aug 2024 14:36:41 +0200 Subject: [PATCH] revert mistake with api documentation --- src/index.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/index.ts b/src/index.ts index 58241bd..db7dd85 100644 --- a/src/index.ts +++ b/src/index.ts @@ -21,9 +21,9 @@ const certificate = fs.readFileSync("./src/keys/fullchain.pem", "utf-8"); const credentials = { key: privateKey, cert: certificate }; -// app.get("/", (rq, rs) => { -// rs.redirect("/api"); -// }); +app.get("/", (rq, rs) => { + rs.redirect("/api"); +}); import swaggerUi from "swagger-ui-express"; const swaggerDocument = yaml.parse( @@ -37,7 +37,7 @@ const options = { }, }; -app.use("/", swaggerUi.serve, swaggerUi.setup(swaggerDocument, options)); +// app.use("/", swaggerUi.serve, swaggerUi.setup(swaggerDocument, options)); const windowMS = Number(process.env.API_RATE_WINDOW) * 1000 || 60 * 1000; const requests = Number(process.env.API_MAX_REQUESTS) || 10;