Skip to content

Commit

Permalink
Add missing Readium MediaTypes
Browse files Browse the repository at this point in the history
Readium Content Document + Guided Navigation
  • Loading branch information
JayPanoz committed Oct 3, 2024
1 parent 61b1f08 commit 361d925
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions shared/src/util/mediatype/MediaType.ts
Original file line number Diff line number Diff line change
Expand Up @@ -454,6 +454,20 @@ export class MediaType {
fileExtension: 'json',
});
}
public static get READIUM_CONTENT_DOCUMENT(): MediaType {
return MediaType.parse({
mediaType: 'application/vnd.readium.content+json',
name: 'Readium Content Document',
fileExtension: 'json',
});
}
public static get READIUM_GUIDED_NAVIGATION_DOCUMENT(): MediaType {
return MediaType.parse({
mediaType: 'application/guided-navigation+json',
name: 'Readium Guided Navigation Document',
fileExtension: 'json',
});
}
public static get READIUM_POSITION_LIST(): MediaType {
return MediaType.parse({
mediaType: 'application/vnd.readium.position-list+json',
Expand Down

0 comments on commit 361d925

Please sign in to comment.