summary refs log tree commit diff
path: root/src/api
diff options
context:
space:
mode:
Diffstat (limited to 'src/api')
-rw-r--r--src/api/Server.ts10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/api/Server.ts b/src/api/Server.ts

index a2e63f46..1d9fe2ab 100644 --- a/src/api/Server.ts +++ b/src/api/Server.ts
@@ -157,14 +157,6 @@ export class SpacebarServer extends Server { // new well-known location app.get("/.well-known/spacebar/client", (req, res) => { - let erlpackSupported = false; - try { - require("@yukikaze-bot/erlpack"); - erlpackSupported = true; - } catch (e) { - // empty - } - res.json({ api: { baseUrl: Config.get().api.endpointPublic?.split("/api/")[0], @@ -178,7 +170,7 @@ export class SpacebarServer extends Server { }, gateway: { baseUrl: Config.get().gateway.endpointPublic, - encoding: [...(erlpackSupported ? ["etf"] : []), "json"], + encoding: ["etf", "json"], compression: ["zstd-stream", "zlib-stream", null], }, admin: