Taking a Carousel for a Spin

Building a REST API Step-by-Step

This post uses Code Hike's carouselcoding layout to walk through building a Next.js API route incrementally. Scroll through each step on the left and watch the code evolve on the right.

api/users/route.ts
import { NextResponse } from "next/server";
export async function GET() {
return NextResponse.json({
users: [],
});
}

This post uses Code Hike's carouselcoding layout to walk through building a Next.js API route incrementally. Scroll through each step on the left and watch the code evolve on the right.