From 6760c5eea7cc67b9a51ef92c52bb04a32c71d6c7 Mon Sep 17 00:00:00 2001 From: Sakooooo <78461130+Sakooooo@users.noreply.github.com> Date: Sat, 30 Nov 2024 21:33:19 +0400 Subject: [PATCH] matrix shennanigan --- src/pages/.well-known/matrix/client.js | 15 +++++++++++++++ src/pages/.well-known/matrix/server.js | 15 +++++++++++++++ 2 files changed, 30 insertions(+) create mode 100644 src/pages/.well-known/matrix/client.js create mode 100644 src/pages/.well-known/matrix/server.js diff --git a/src/pages/.well-known/matrix/client.js b/src/pages/.well-known/matrix/client.js new file mode 100644 index 0000000..5740d4d --- /dev/null +++ b/src/pages/.well-known/matrix/client.js @@ -0,0 +1,15 @@ +export const prerender = false; + +export async function GET() { + return new Response( + JSON.stringify({ + "m.homeserver": { base_url: "https://matrix.sako.lol" }, + }), + { + headers: { + "Content-Type": "application/json", + "Access-Control-Allow-Origin": "*", + }, + } + ); +} diff --git a/src/pages/.well-known/matrix/server.js b/src/pages/.well-known/matrix/server.js new file mode 100644 index 0000000..413500b --- /dev/null +++ b/src/pages/.well-known/matrix/server.js @@ -0,0 +1,15 @@ +export const prerender = false; + +export async function GET() { + return new Response( + JSON.stringify({ + "m.server": "matrix.sako.lol:443", + }), + { + headers: { + "Content-Type": "application/json", + "Access-Control-Allow-Origin": "*", + }, + } + ); +}