WebSockets: rename resource index.json to more meaningful surfaces.json
This commit is contained in:
parent
17cbd65603
commit
e7f22cf989
@ -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;
|
||||
}
|
||||
|
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user