Discord nitro code generator github

broken image
broken image

Request body and params are automatically handled, with correct Content-Type headersįor more information on $fetch features, check out ofetch.Automatic parsing of JSON responses (with access to raw response if needed).

$fetch API is using ofetch, with key features including: This will make an API call to the server if run on the browser, but will directly call the relevant function if run on the server, saving an additional API call.

broken image

Nitro allows 'direct' calling of routes via the globally-available $fetch helper. Learn more about the API layer in the server/ directory.

broken image