Join our community

You can watch this lesson for FREE. Sign up with your GitHub account now to get access.

Create a Basic API with Server Routes

In this lesson, you’ll learn how to create a basic server route (aka API endpoint) using Nitro, Nuxt’s server engine, and h3, the web framework used by Nitro.

You’ll create this route to serve a mocked AI response back to our UI.

Server routes: https://nuxt.com/docs/guide/directory-structure/server

Nitro: https://nitro.build/

h3: https://h3.unjs.io/