Skip to content

Instantly share code, notes, and snippets.

@bermi
Forked from tj/routes.js
Created October 15, 2011 02:20
Show Gist options
  • Save bermi/1288905 to your computer and use it in GitHub Desktop.
Save bermi/1288905 to your computer and use it in GitHub Desktop.
Express routes
var app = require('../app');
console.log();
app.routes.all().forEach(function(route){
console.log(' \033[90m%s \033[36m%s\033[0m', route.method.toUpperCase(), route.path);
});
console.log();
process.exit();
GET /:path(*).js
GET /my/videos
GET /my/videos/:page
GET /
GET /search
GET /explore/all
GET /explore/all/:page
GET /subject/:id
GET /subject/:id/:page
GET /video/:slug
GET /create
GET /uploads/images/:name
POST /like/:id
POST /unlike/:id
POST /login
POST /signup
POST /video/:id
POST /video
POST /upload/image
PUT /video/:id/private
PUT /video/:id/public
DELETE /video/:id
DELETE /video/data
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment