Skip to content

Instantly share code, notes, and snippets.

@tj
Created October 15, 2011 00:23
Show Gist options
  • Star 21 You must be signed in to star a gist
  • Fork 5 You must be signed in to fork a gist
  • Save tj/1288766 to your computer and use it in GitHub Desktop.
Save tj/1288766 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