diff --git a/src/api/images/api.ts b/src/api/images/api.ts index 4a2095c..3a4dc8b 100644 --- a/src/api/images/api.ts +++ b/src/api/images/api.ts @@ -10,14 +10,15 @@ function handler(pathName: string) { http.get(`/${pathName}`, () => { const images = fs.readdirSync('./src/resources/images'); return HttpResponse.text( - ` + ` +
-

Access images stored in the src/resources/images folder using the format: api/images/{filename}

+

Access images stored in the src/resources/images folder using the format: api/images/{filename}

Resize images by adding url paramters E.g placeholder.png?height=500&width=500

Get a full list of images as a json object at /images/list

Available image files in src/resources/images folder:

-
${images.map((image) => `${image}

`).join('')}
+
${images.map((image) => `

${image}

`).join('')}
`, diff --git a/src/api/videos/api.ts b/src/api/videos/api.ts index b6e2a1d..f8d3417 100644 --- a/src/api/videos/api.ts +++ b/src/api/videos/api.ts @@ -9,9 +9,10 @@ function handler(pathName: string) { http.get(`/${pathName}`, ({ request: _request }) => { const videos = fs.readdirSync('./src/resources/videos'); return HttpResponse.text( - ` + ` +
-

Access videos stored in the src/resources/videos folder using the format: api/videos/{filename}

+

Access videos stored in the src/resources/videos folder using the format: api/videos/{filename}

Example: api/videos/placeholder.mp4

Get a full list of videos as a json object at /videos/list

Available video files in src/resources/videos folder: