export default {
  async fetch(request) {
    const url = new URL(request.url);

    if (url.pathname === "/.well-known/microsoft-identity-association.json") {
      return new Response(
        JSON.stringify({
          associatedApplications: [
            {
              applicationId: "520e4266-398f-4521-aa62-b3b85002637d"
            }
          ]
        }),
        {
          headers: {
            "Content-Type": "application/json; charset=utf-8",
            "Cache-Control": "no-store"
          }
        }
      );
    }

    return new Response("Not found", { status: 404 });
  }
};