Skip to content

Commit

Permalink
revert mistake with api documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
Moonded committed Aug 27, 2024
1 parent 85f6878 commit 5e59f53
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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;
Expand Down

0 comments on commit 5e59f53

Please sign in to comment.