Skip to content

Commit bde8ee5

Browse files
committed
chore: Added route comments to stitcher
1 parent 89bec23 commit bde8ee5

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

apps/stitcher/src/routes/out.ts

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ import {
1212
import { getSession } from "../session";
1313

1414
export 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(

apps/stitcher/src/routes/sessions.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ import { createMasterUrl, createOpaqueMasterUrl } from "../playlist";
99
import { createSession, getSession } from "../session";
1010

1111
export 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(

0 commit comments

Comments
 (0)