Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Sigh

Manav Rathic7d5dde9f73e
diff --git a/web/packages/shared/network/cast.ts b/web/packages/shared/network/cast.ts
index c5d0ddef90..6f9c1d54b6 100644
--- a/web/packages/shared/network/cast.ts
+++ b/web/packages/shared/network/cast.ts
@@ -24,7 +24,7 @@ class CastGateway {
try {
const token = getToken();
await HTTPService.delete(
- await apiURL("/cast/revoke-all-tokens"),
+ await apiURL("/cast/revoke-all-tokens/"),
undefined,
undefined,
{
@@ -59,9 +59,12 @@ class CastGateway {
}
public async registerDevice(publicKey: string): Promise<string> {
- const resp = await HTTPService.post(await apiURL("/cast/device-info"), {
- publicKey: publicKey,
- });
+ const resp = await HTTPService.post(
+ await apiURL("/cast/device-info/"),
+ {
+ publicKey: publicKey,
+ },
+ );
return resp.data.deviceCode;
}
@@ -73,7 +76,7 @@ class CastGateway {
) {
const token = getToken();
await HTTPService.post(
- await apiURL("/cast/cast-data"),
+ await apiURL("/cast/cast-data/"),
{
deviceCode: `${code}`,
encPayload: castPayload,