import { n as getPublicOrigin } from "../../../../public-url-Danv47cS.mjs";
import { n as VALID_SCOPES } from "../../../../api-tokens-DsvvCtdh.mjs";

//#region src/astro/routes/api/well-known/oauth-protected-resource.ts
const prerender = false;
const GET = async ({ url, locals }) => {
	const origin = getPublicOrigin(url, locals.emdash?.config);
	return Response.json({
		resource: `${origin}/_emdash/api/mcp`,
		authorization_servers: [`${origin}/_emdash`],
		scopes_supported: [...VALID_SCOPES],
		bearer_methods_supported: ["header"]
	}, { headers: {
		"Cache-Control": "public, max-age=3600",
		"Access-Control-Allow-Origin": "*"
	} });
};

//#endregion
export { GET, prerender };
//# sourceMappingURL=oauth-protected-resource.mjs.map