Skip to content

Commit

Permalink
fix: api routes didn't use the API_PATH_PREFIX router
Browse files Browse the repository at this point in the history
  • Loading branch information
rubyowo committed Jun 2, 2024
1 parent b28ca17 commit 7252aa1
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions backend/src/api/start.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,18 +28,18 @@ app.use(multer().none());

const rootRouter = express.Router();

initAuth(app);
initGuildsAPI(app);
initArchives(app);
initDocs(app);

// Default route
rootRouter.get("/", (req, res) => {
res.json({ status: "cookies", with: "milk" });
});

app.use(apiPathPrefix, rootRouter);

initAuth(rootRouter);
initGuildsAPI(rootRouter);
initArchives(rootRouter);
initDocs(rootRouter);

// Error response
// eslint-disable-next-line @typescript-eslint/no-unused-vars
app.use((err, req, res, next) => {
Expand Down

0 comments on commit 7252aa1

Please sign in to comment.