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": "*", + }, + } + ); +}