From 83a59a5e9c070213ccf23bb7749f21c4c4deb435 Mon Sep 17 00:00:00 2001 From: Brahim Hadriche Date: Mon, 19 Feb 2024 16:31:47 -0500 Subject: [PATCH] small adjustment --- playlet-lib/src/components/Web/Dial/DialServer.bs | 2 +- .../Web/PlayletWebServer/Middleware/DialRouter.bs | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/playlet-lib/src/components/Web/Dial/DialServer.bs b/playlet-lib/src/components/Web/Dial/DialServer.bs index 431d0c99..348100e6 100644 --- a/playlet-lib/src/components/Web/Dial/DialServer.bs +++ b/playlet-lib/src/components/Web/Dial/DialServer.bs @@ -196,7 +196,7 @@ function CreateSsdpResponse(ssdp as object, webServer as object) as string msg = `HTTP/1.1 200 OK\r\n` msg += `LOCATION: ${webServerAddress}/dial/${m.deviceId}/device-description.xml\r\n` msg += `ST: ${ssdp.headers.ST}\r\n` - msg += `SERVER: Playlet Lib Dial Server ${libVersion} \r\n` + msg += `SERVER: Playlet Dial Server ${libVersion} \r\n` msg += `USN: uuid:${m.deviceId}::${ssdp.headers.ST}\r\n` msg += `CACHE-CONTROL: no-cache, no-store, max-age=0, must-revalidate\r\n` msg += `EXT: \r\n` diff --git a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/DialRouter.bs b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/DialRouter.bs index 0819838d..4e2f3431 100644 --- a/playlet-lib/src/components/Web/PlayletWebServer/Middleware/DialRouter.bs +++ b/playlet-lib/src/components/Web/PlayletWebServer/Middleware/DialRouter.bs @@ -20,7 +20,7 @@ namespace Http m.routes.push({ method: "DELETE", path: `/dial/${m.deviceId}/YouTube/run`, router: m, func: "CloseChannel" }) end function - ' @get("/dial/device-description.xml") + ' @get("/dial/:device-id/device-description.xml") function GetDialManifest(context as object) as boolean response = context.response @@ -33,7 +33,7 @@ namespace Http return true end function - ' @get("/dial/YouTube") + ' @get("/dial/:device-id/YouTube") function GetDialYouTube(context as object) as boolean response = context.response @@ -46,7 +46,7 @@ namespace Http return true end function - ' @post("/dial/YouTube") + ' @post("/dial/:device-id/YouTube") function PostDialYouTube(context as object) as boolean request = context.request response = context.response @@ -100,7 +100,7 @@ namespace Http return true end function - ' @delete("/dial/YouTube/run") + ' @delete("/dial/:device-id/YouTube/run") function CloseChannel(context as object) as boolean response = context.response