mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-17 12:16:30 +01:00
WebSockets: rename resource index.json to more meaningful surfaces.json
This commit is contained in:
parent
17cbd65603
commit
e7f22cf989
2 changed files with 2 additions and 2 deletions
|
|
@ -341,7 +341,7 @@ WebsocketsServer::send_index_hdr (Client wsi)
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (strcmp (url, "/index.json") != 0) {
|
if (strcmp (url, "/surfaces.json") != 0) {
|
||||||
lws_return_http_status (wsi, 404, 0);
|
lws_return_http_status (wsi, 404, 0);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -33,7 +33,7 @@ export class Ardour {
|
||||||
}
|
}
|
||||||
|
|
||||||
async getAvailableSurfaces () {
|
async getAvailableSurfaces () {
|
||||||
const response = await fetch('/index.json');
|
const response = await fetch('/surfaces.json');
|
||||||
|
|
||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
return await response.json();
|
return await response.json();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue