Skip to content

Short form for function and middleware routes #84

Closed

Description

@jimhoyd

Plan: docs/NEXT-STEPS.md §4.1.

function: functions/hello.mjs as a string expands every {param} to a required bounded string parameter with a matching args entry; middleware: [functions/x.mjs] likewise. The long form stays the canonical IR; routes, audit, explain and the generated reference show the expansion. version: "1" stays valid.

Done when: schema and npm run docs:reference updated, the cookbook gains a short-form route with fixtures, and a test proves short and long forms compile to identical IR.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions