Menu
My Site LogoRoutexDocsPackagesBlog
GitHub
My Site LogoRoutex
  • Docs
  • Packages
  • Blog
  • GitHub
  • Getting Started
    • Introduction
    • Installation
    • Listening
    • Body
    • Providers
    • TypeScript
    • Comparison
  • Routes
    • Routes
    • Child Routers
    • Parameters
    • Query String
    • Headers
    • Context Data
    • Request ID
    • Errors
  • Middlewares
    • Middlewares
    • Express Middlewares
  • Examples
    • Scaling
    • Templates

Parameters

Route parameters are attached to the ctx.params object.

Parameters are available with the same syntax as path-to-regexp:

app.get("/:name", (ctx) => {
return new TextBody(ctx.params.name);
});
Edit this page
Previous
« Child Routers
Next
Query String »

Routex

  • Docs
  • Packages
  • Blog

Community

  • Stack Overflow
  • Spectrum

More

  • GitHub
  • npm
Copyright © 2020 Charles Crete (Routex)