feat: add well-know path for msid associated

This commit is contained in:
Bart van der Braak 2024-02-22 00:23:24 +01:00
parent d16c60babd
commit b1d8df5ebe
2 changed files with 12 additions and 0 deletions

View file

@ -0,0 +1,10 @@
import { MSID_ASSOCIATION } from '$env/static/private';
export async function GET() {
return new Response(JSON.stringify(MSID_ASSOCIATION), {
headers: {
'Cache-Control': `public, max-age=${86400}`,
'Content-Type': 'application/json'
}
});
}