KScript docs
EN

Routes and APIs

In the editor

Route files get the same checking and completion as scripts:

  • to: completes the functions of imported controllers (@people.show). A name that doesn't exist is an error with a did-you-mean.
  • middleware: and use: complete the built-ins too, and accept http.groups names.
  • Names in a list are checked and completed one by one, inside [ ] too.
  • Route elements are only offered inside Routes or Group.
  • {id} in a path isn't read as a { } expression.
  • Doc comments on controllers show in hover, and also become the API docs.

Edit this page on GitHub