mirror of
https://github.com/bookorbit/bookorbit.git
synced 2026-11-03 00:11:37 -06:00
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:
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user