public
Last active

Express routes

  • Download Gist
routes.js
JavaScript
1 2 3 4 5 6 7 8
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();
stdout
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
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
...

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.