feat: errore mezuak euskaratzen ditu

This commit is contained in:
2026-08-17 10:11:29 +02:00
parent 2f18aa81bd
commit 882f8db9f6

View File

@@ -3,7 +3,7 @@ import type { APIContext } from "astro";
export async function GET({ request }: APIContext) { export async function GET({ request }: APIContext) {
const url = new URL(request.url).searchParams.get("url"); const url = new URL(request.url).searchParams.get("url");
if (!url) { if (!url) {
return new Response(JSON.stringify({ error: "Falta el parámetro url" }), { return new Response(JSON.stringify({ error: "url parametroa falta da" }), {
status: 400, status: 400,
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}); });
@@ -24,7 +24,7 @@ export async function GET({ request }: APIContext) {
); );
if (!match) { if (!match) {
return new Response(JSON.stringify({ error: "No se encontró el RSS" }), { return new Response(JSON.stringify({ error: "Ez da RSS-a aurkitu" }), {
status: 404, status: 404,
headers: { "Content-Type": "application/json" }, headers: { "Content-Type": "application/json" },
}); });