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

@@ -79,7 +79,7 @@ const request = async (url: string) => {
return response;
}
const probeCobaltStream = async (url: string) => {
const probeCobaltTunnel = async (url: string) => {
const request = await fetch(`${url}&p=1`).catch(() => {});
if (request?.status === 200) {
return request?.status;
@@ -89,5 +89,5 @@ const probeCobaltStream = async (url: string) => {
export default {
request,
probeCobaltStream,
probeCobaltTunnel,
}