mirror of
https://github.com/versia-pub/server.git
synced 2026-03-13 05:49:16 +01:00
Add host-meta endpoint
This commit is contained in:
parent
a83648db48
commit
a499dfd231
2 changed files with 27 additions and 0 deletions
|
|
@ -10,6 +10,15 @@ export const jsonResponse = (data: object, status = 200) => {
|
|||
});
|
||||
};
|
||||
|
||||
export const xmlResponse = (data: string, status = 200) => {
|
||||
return new Response(data, {
|
||||
headers: {
|
||||
"Content-Type": "application/xml",
|
||||
},
|
||||
status,
|
||||
});
|
||||
};
|
||||
|
||||
export const jsonLdResponse = (
|
||||
data: NodeObject | APActivity | APObject,
|
||||
status = 200
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue