File tree Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Expand file tree Collapse file tree 2 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,15 @@ function handler(pathName: string) {
1010 http . get ( `/${ pathName } ` , ( ) => {
1111 const images = fs . readdirSync ( './src/resources/images' ) ;
1212 return HttpResponse . text (
13- `<body style="background-color: #383838; color:white">
13+ `<style>a {color: lightblue; text-decoration: none} a:hover {text-decoration: underline}</style>
14+ <body style="background-color: #383838; color:white">
1415 <div style="text-align:center; padding:50px 0px 0px 0px">
15- <h4>Access images stored in the src/resources/images folder using the format: <span style="color:red ">api/images/{filename}</span></h4>
16+ <h4>Access images stored in the src/resources/images folder using the format: <span style="color:pink ">api/images/{filename}</span></h4>
1617 <h4>Resize images by adding url paramters E.g placeholder.png?height=500&width=500</h4>
1718
1819 <h4>Get a full list of images as a json object at <a href="/api/images/list">/images/list</a> </h4>
1920 <h4>Available image files in src/resources/images folder:</h4>
20- <div>${ images . map ( ( image ) => `<a href="/api/images/${ image } ">${ image } </a></p>` ) . join ( '' ) } <div>
21+ <div>${ images . map ( ( image ) => `<p>< a href="/api/images/${ image } " >${ image } </a></p>` ) . join ( '' ) } <div>
2122 </div>
2223 </body>
2324 ` ,
Original file line number Diff line number Diff line change @@ -9,9 +9,10 @@ function handler(pathName: string) {
99 http . get ( `/${ pathName } ` , ( { request : _request } ) => {
1010 const videos = fs . readdirSync ( './src/resources/videos' ) ;
1111 return HttpResponse . text (
12- `<body style="background-color: #383838; color:white">
12+ `<style>a {color: lightblue; text-decoration: none} a:hover {text-decoration: underline}</style>
13+ <body style="background-color: #383838; color:white">
1314 <div style="text-align:center; padding:50px 0px 0px 0px">
14- <h4>Access videos stored in the src/resources/videos folder using the format: <span style="color:red ">api/videos/{filename}</span></h4>
15+ <h4>Access videos stored in the src/resources/videos folder using the format: <span style="color:pink ">api/videos/{filename}</span></h4>
1516 <h4>Example: api/videos/placeholder.mp4</h4>
1617 <h4>Get a full list of videos as a json object at <a href="/api/videos/list">/videos/list</a> </h4>
1718 <h4>Available video files in src/resources/videos folder:</h4>
You can’t perform that action at this time.
0 commit comments