File: cli-path-patch

package info (click to toggle)
welle.io 2.4%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 8,248 kB
  • sloc: ansic: 84,768; asm: 17,454; cpp: 16,818; javascript: 497; xml: 155; sh: 141; python: 131; java: 37; makefile: 36; ruby: 32
file content (21 lines) | stat: -rw-r--r-- 950 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Description: Set location of files to where the package installs them
Author: Gürkan Myczko <gurkan@phys.ethz.ch>
Origin: Debian
Forwarded: not-needed
Last-Update: 2019-10-23

--- welle.io-2.0.orig/src/welle-cli/webradiointerface.cpp
+++ welle.io-2.0/src/welle-cli/webradiointerface.cpp
@@ -439,10 +439,10 @@ bool WebRadioInterface::dispatch_client(
     else {
         if (req.is_get) {
             if (req.url == "/") {
-                success = send_file(s, "index.html", http_contenttype_html);
+                success = send_file(s, "/usr/share/welle-io/html/index.html", http_contenttype_html);
             }
             else if (req.url == "/index.js") {
-                success = send_file(s, "index.js", http_contenttype_js);
+                success = send_file(s, "/usr/share/welle-io/html/index.js", http_contenttype_js);
             }
             else if (req.url == "/mux.json") {
                 success = send_mux_json(s);