matrix shennanigan
This commit is contained in:
parent
f024ae9416
commit
6760c5eea7
2 changed files with 30 additions and 0 deletions
15
src/pages/.well-known/matrix/client.js
Normal file
15
src/pages/.well-known/matrix/client.js
Normal file
|
@ -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": "*",
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
15
src/pages/.well-known/matrix/server.js
Normal file
15
src/pages/.well-known/matrix/server.js
Normal file
|
@ -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": "*",
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
Loading…
Reference in a new issue