From c88d5c9b17d1083baa14835d2b12552c60559a9f Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Tue, 18 Apr 2023 10:55:39 +0200 Subject: [PATCH] Rename `status.json` to `status` --- cmd/camera-streamer/http.c | 2 +- html/index.html | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/cmd/camera-streamer/http.c b/cmd/camera-streamer/http.c index f7fe9c7..9bb593a 100644 --- a/cmd/camera-streamer/http.c +++ b/cmd/camera-streamer/http.c @@ -103,7 +103,7 @@ http_method_t http_methods[] = { { "GET", "/webrtc", http_content, "text/html", html_webrtc_html, 0, &html_webrtc_html_len }, { "POST", "/webrtc", http_webrtc_offer }, { "GET", "/option", camera_http_option }, - { "GET", "/status.json", camera_status_json }, + { "GET", "/status", camera_status_json }, { "GET", "/", http_content, "text/html", html_index_html, 0, &html_index_html_len }, { "OPTIONS", "*/", http_cors_options }, { } diff --git a/html/index.html b/html/index.html index 0725215..8793383 100644 --- a/html/index.html +++ b/html/index.html @@ -67,6 +67,14 @@
+
  • + /status
    +
    + +
  • +
  • The mjpg-streamer compatibility layer: