import "../../../../base64-CmWvODNW.mjs";
import "../../../../types-CuW0zWDA.mjs";
import { n as apiSuccess, t as apiError } from "../../../../error-CkAseSqZ.mjs";
import { i as getDevEmails, n as clearDevEmails } from "../../../../email-console-CIf4Lfvv.mjs";

//#region src/astro/routes/api/dev/emails.ts
const prerender = false;
const GET = async () => {
	if (!import.meta.env.DEV) return apiError("FORBIDDEN", "Dev emails endpoint is only available in development mode", 403);
	return apiSuccess({ items: getDevEmails() });
};
const DELETE = async () => {
	if (!import.meta.env.DEV) return apiError("FORBIDDEN", "Dev emails endpoint is only available in development mode", 403);
	clearDevEmails();
	return apiSuccess({ success: true });
};

//#endregion
export { DELETE, GET, prerender };
//# sourceMappingURL=emails.mjs.map