Skip to content

Instantly share code, notes, and snippets.

@mcotton
Forked from tj/routes.js
Created October 15, 2011 04:57
Show Gist options
  • Save mcotton/1289076 to your computer and use it in GitHub Desktop.
Save mcotton/1289076 to your computer and use it in GitHub Desktop.

Revisions

  1. @tj tj revised this gist Oct 15, 2011. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion stdout
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,3 @@

    GET /:path(*).js
    GET /my/videos
    GET /my/videos/:page
    @@ -22,3 +21,4 @@
    PUT /video/:id/public
    DELETE /video/:id
    DELETE /video/data
    ...
  2. @tj tj revised this gist Oct 15, 2011. 2 changed files with 1 addition and 3 deletions.
    3 changes: 1 addition & 2 deletions routes.js
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,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();
    process.exit();
    1 change: 0 additions & 1 deletion stdout
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,4 @@


    GET /:path(*).js
    GET /my/videos
    GET /my/videos/:page
  3. @tj tj created this gist Oct 15, 2011.
    9 changes: 9 additions & 0 deletions routes.js
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@

    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();
    25 changes: 25 additions & 0 deletions stdout
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,25 @@


    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