Skip to content
This repository has been archived by the owner on Jul 31, 2024. It is now read-only.

Commit

Permalink
fix: get random text not taking any params
Browse files Browse the repository at this point in the history
  • Loading branch information
vycdev committed Jul 13, 2020
1 parent c1bbdf2 commit 78f4372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/modules/texts/router.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ router.get("/getAllTexts", async (ctx, next) => {
await next();
});

router.get("/getRandomText", async (ctx, next) => {
router.get("/getRandomText/:ordered", async (ctx, next) => {
const { ordered = undefined } = ctx.params;
const text = await getRandomText(ordered);
ctx.status = 200;
Expand Down

0 comments on commit 78f4372

Please sign in to comment.