feat(types): advertise reading history to clients

List reading-history in SERVER_FEATURES so the iOS app shows History, and its links from
Activity and a book's Timeline, only on servers that serve the routes.

Ref #1630
This commit is contained in:
neon
2026-10-22 16:23:47 +00:00
parent 6b6b662e79
commit d44444823f
+5
View File
@@ -41,6 +41,11 @@ export const SERVER_FEATURES = [
"relative-date-ranges", "relative-date-ranges",
/** The `format` book filter accepts `epub:readalong` for EPUBs with media overlays. */ /** The `format` book filter accepts `epub:readalong` for EPUBs with media overlays. */
"read-along-filter", "read-along-filter",
/**
* `GET /reading-history` (offset pages, the first carrying every month's size), `/summary`,
* `/:attemptId/marks` and `PATCH /:attemptId/rating`.
*/
"reading-history",
] as const; ] as const;
export type ServerFeature = (typeof SERVER_FEATURES)[number]; export type ServerFeature = (typeof SERVER_FEATURES)[number];