Skip to content

Instantly share code, notes, and snippets.

@LilaHickey
LilaHickey / routes.ts
Last active September 6, 2018 01:37
Express Routes For Singular vs. Multiple Routes
import { Router } from 'express'
router = Router();
router.get('/my-route', function(req, res){
// inside anon function, req.route looks something like
// Route {
// path:'/my-route',
// stack:[]
// }

Keybase proof

I hereby claim:

  • I am LilaHickey on github.
  • I am lilahickey (https://keybase.io/lilahickey) on keybase.
  • I have a public key whose fingerprint is BBE5 C7A1 7CBB 64CD 7556 5F70 5042 9A19 43BF A4B3

To claim this, I am signing this object: