web & api: rename stream to tunnel

- updated the endpoint to /tunnel
- updated status to tunnel
- fixed one incorrectly named error in web
This commit is contained in:
wukko
2024-09-05 00:26:48 +06:00
parent 49460bd16d
commit fff1c6c7a6
13 changed files with 99 additions and 99 deletions

View File

@@ -53,7 +53,7 @@ export function createStream(obj) {
encryptStream(streamData, iv, secret)
)
let streamLink = new URL('/stream', env.apiURL);
let streamLink = new URL('/tunnel', env.apiURL);
const params = {
'id': streamID,
@@ -103,7 +103,7 @@ export function createInternalStream(url, obj = {}) {
dispatcher
};
let streamLink = new URL('/istream', `http://127.0.0.1:${env.apiPort}`);
let streamLink = new URL('/itunnel', `http://127.0.0.1:${env.apiPort}`);
streamLink.searchParams.set('id', streamID);
const cleanup = () => {