ktor-routing

Installation
SKILL.md

Ktor Routing

Parent context: See root AGENTS.md (lines 147-167) for error handling and routing rules. This skill provides concrete code examples that complement those rules. The codebase uses Ktor only -- no annotation-based web frameworks.

When to use me

  • Trigger: building a new REST endpoint or fun Route.X() extension
  • Trigger: wiring a new app's Application.<appName>() module
  • Trigger: handling errors via StatusPages and ApiError
  • Trigger: adding authenticate("name") { ... } JWT blocks
  • Trigger: throwing badRequest(), notFound(), conflict(), etc. from a route handler

Route as extension function

Routes are defined as extension functions on Route. Dependencies are passed as constructor-style parameters. No annotations, no DI framework.

Installs
1
GitHub Stars
1
First Seen
Jun 19, 2026
ktor-routing — navikt/helved-utbetaling