File tree Expand file tree Collapse file tree 2 files changed +18
-0
lines changed
Expand file tree Collapse file tree 2 files changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,9 @@ import {
1212import { getSession } from "../session" ;
1313
1414export const outApp = new Hono ( )
15+ /**
16+ * Get master playlist.
17+ */
1518 . get (
1619 "/master.m3u8" ,
1720 validator (
@@ -42,6 +45,10 @@ export const outApp = new Hono()
4245 return c . body ( playlist , 200 ) ;
4346 } ,
4447 )
48+
49+ /**
50+ * Get media playlist.
51+ */
4552 . get (
4653 "/playlist.m3u8" ,
4754 validator (
@@ -73,6 +80,10 @@ export const outApp = new Hono()
7380 return c . body ( playlist , 200 ) ;
7481 } ,
7582 )
83+
84+ /**
85+ * Get asset list.
86+ */
7687 . get (
7788 "asset-list.json" ,
7889 validator (
Original file line number Diff line number Diff line change @@ -9,6 +9,9 @@ import { createMasterUrl, createOpaqueMasterUrl } from "../playlist";
99import { createSession , getSession } from "../session" ;
1010
1111export const sessionsApp = new Hono ( )
12+ /**
13+ * Create a session.
14+ */
1215 . post (
1316 "/" ,
1417 describeRoute ( {
@@ -85,6 +88,10 @@ export const sessionsApp = new Hono()
8588 return c . json ( { url } , 200 ) ;
8689 } ,
8790 )
91+
92+ /**
93+ * Redirects a particular session to the master URL.
94+ */
8895 . get (
8996 "/:sessionId/master.m3u8" ,
9097 validator (
You can’t perform that action at this time.
0 commit comments