Add host-meta endpoint

This commit is contained in:
Jesse Wierzbinski 2023-09-12 19:33:08 -10:00
parent a83648db48
commit a499dfd231
No known key found for this signature in database
GPG key ID: F9A1E418934E40B0
2 changed files with 27 additions and 0 deletions

View file

@ -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