The frontend displays one quote per page. A /quotes/random endpoint allows the frontend to fetch a single random quote without client-side selection logic.
Implementation: add a get_random_quote function to db.rs using ORDER BY RANDOM() LIMIT 1, a corresponding handler in routes.rs, and tests in the existing test module. Follow TDD order: tests first.
The frontend displays one quote per page. A
/quotes/randomendpoint allows the frontend to fetch a single random quote without client-side selection logic.Implementation: add a
get_random_quotefunction to db.rs usingORDER BY RANDOM() LIMIT 1, a corresponding handler inroutes.rs, and tests in the existing test module. Follow TDD order: tests first.