Routes

The routes command is used to list all routes in the application.

Syntax

$ vela routes

Each row is a URL, the methods it answers and the route id, which keeps the layout groups the URL leaves out: /about is /(public)/about.

The list is read from the routes directory by SvelteKit’s rules: a page with a layout reset (+page@.svelte), a page with one of the configured extensions (.svx), a route that is only a +page.server.ts, and a symlinked route directory are all included. A page with form actions is listed with POST, and an endpoint with the methods its +server file exports.