इसे छोड़कर कंटेंट पर जाएं

The endpoint did not return a Response.

यह कंटेंट अभी तक आपकी भाषा में उपलब्ध नहीं है।

EndpointDidNotReturnAResponse: An endpoint must return either a Response, or a Promise that resolves with a Response.

Thrown when an endpoint does not return anything or returns an object that is not a Response object.

An endpoint must return either a Response, or a Promise that resolves with a Response. For example:

import type { APIContext } from 'astro';
export async function GET({ request, url, cookies }: APIContext): Promise<Response> {
return Response.json({
success: true,
result: 'Data from Astro Endpoint!'
})
}
Contribute

आपके दिमाग में क्या है?

Community