Search⌘ K
AI Features

Server Routes

Explore how server routes in Sapper allow you to manage HTTP requests and create JSON APIs that run alongside your frontend code. Understand dynamic routing and how to handle data for your cloud-native web application development.

We'll cover the following...

There are two types of routes in Sapper: pages and server routes. According to official documentation, “Pages are Svelte components written in .svelte files. A user is first served a server-rendered version of the route in question and a client-side ...