Skip to content

Commit

Permalink
Merge pull request #143 from Whats-Cookin/doc/expose
Browse files Browse the repository at this point in the history
fix(docs): change the docs endpoint
  • Loading branch information
omareloui authored Oct 3, 2024
2 parents 3b2154f + ce1465f commit eb9e8f4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ app.use(morgan("dev"));

app.use(cors({ origin: "*" }));

registerSwagger(apiRoutes);

app.use("/auth", authRoutes);
app.use("/api", apiRoutes);

registerSwagger(app);

// if nothing matches, this should be before the express error handler
app.use((_req, _res, next) => {
next(new createError.NotFound());
Expand Down

0 comments on commit eb9e8f4

Please sign in to comment.