From fb44b3967896eff7cb6fa3625116575e63f47e92 Mon Sep 17 00:00:00 2001 From: Lewis Crichton Date: Thu, 16 Feb 2023 22:53:58 +0000 Subject: [PATCH] add html about --- src/index.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/index.ts b/src/index.ts index c8521c0..b0342c7 100644 --- a/src/index.ts +++ b/src/index.ts @@ -30,6 +30,11 @@ const fastify = Fastify(); const redis = new Redis(process.env.REDIS_URI!); const SIZE_LIMIT = parseInt(process.env.SIZE_LIMIT!); +const ABOUT = ` +

Vencord API

+

This is the API used by Vencord features like Settings Sync. If you are wondering why requests are sent here, it's because you explicitly opted into Settings Sync. You can disable it at any point!

+

But no worries, this api takes your privacy serious and is free and open source!

+`.trim(); function hash(data: string) { return crypto.createHash("sha1").update(data).digest("hex"); @@ -187,6 +192,6 @@ fastify.get("/callback", async (request, response) => { }); // #endregion -fastify.get("/", () => ({ shiggy: true })); +fastify.get("/", (_, response) => response.type("text/html").send(ABOUT)); await fastify.listen({ host: process.env.HOST!, port: parseInt(process.env.PORT!) });