Skip to content

Instantly share code, notes, and snippets.

@kai101
Created November 20, 2018 03:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kai101/26570cdf6ea85c49d60bd76de52269e2 to your computer and use it in GitHub Desktop.
Save kai101/26570cdf6ea85c49d60bd76de52269e2 to your computer and use it in GitHub Desktop.
How to set Express Route Path?

How to set Express Route Path?

Express path is a powerfull tools to form simple RESTFULL to complex routing for HTTP request. This document will try to capture all usefull express path.

Common

User ID with numeric number

// example: http://example.com/user/331
'/user/:id(\\d+)'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment