Filesystem-based router.

  • src/routes is the root route
  • src/routes/about creates an /about route
  • src/routes/blog/[slug] creates a route with a parameter, slug, that can be used to load data dynamically when a user requests a page like /blog/hello-world

References