Skip to content

Refinements and additions to routing method args #707

Description

@crandmck

From #701:

I think the description of the path & callback arguments is also applicable to router.all, router.METHOD, and router.use, but I wasn't 100% sure.

Since the method signatures (in the headings, e.g. http://expressjs.com/en/4x/api.html#app.all) have callback [, callback ...] , I wonder if we need to specify "A series of middleware functions (separated by commas)." since that's implied by the signature? Maybe it's clear either way? Or perhaps we should just have callback(s) in the signature?

Activity

  1. locked and limited conversation to collaborators on Aug 2, 2025
  2. converted this issue into a discussion #2008 on Aug 2, 2025
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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions