Created
October 15, 2011 00:23
-
-
Save tj/1288766 to your computer and use it in GitHub Desktop.
Express routes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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