menu_book Course Curriculum (Svelte 5) expand_more
Component Syntax
Runes & Reactivity
Composition
Motion & Lifecycle
SvelteKit Routing
Server routes
Learn Server routes in Svelte 5 with a dedicated explanation, a concept-specific example, a production caution, and a mastery check.
12 min read
•
Advanced
Advertisement
svelte-5-037.svelte
svelte
// src/routes/api/health/+server.js
import { json } from "@sveltejs/kit"; export function GET(){return json({ok:true})}
What to watch
Content source & attribution
Original Syntaxis Content · Original Syntaxis Content