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 = ` +
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!) });