13
0

WebSockets: rename resource index.json to more meaningful surfaces.json

This commit is contained in:
Luciano Iam 2020-04-12 10:37:09 +02:00 committed by Robin Gareus
parent 17cbd65603
commit e7f22cf989
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 2 additions and 2 deletions

View File

@ -341,7 +341,7 @@ WebsocketsServer::send_index_hdr (Client wsi)
return 1;
}
if (strcmp (url, "/index.json") != 0) {
if (strcmp (url, "/surfaces.json") != 0) {
lws_return_http_status (wsi, 404, 0);
return 1;
}

View File

@ -33,7 +33,7 @@ export class Ardour {
}
async getAvailableSurfaces () {
const response = await fetch('/index.json');
const response = await fetch('/surfaces.json');
if (response.status == 200) {
return await response.json();