Skip to content

Instantly share code, notes, and snippets.

@Twipped
Created June 5, 2014 20:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Twipped/a2c88ad91a9300ae1e79 to your computer and use it in GitHub Desktop.
Save Twipped/a2c88ad91a9300ae1e79 to your computer and use it in GitHub Desktop.
var denyRoutes = express.Router();
denyRoutes
.use(denyAnon)
.get('/listdocs', handlers.listdocs)
.get('/viewer', handlers.viewer)
.get('/viewer/:filename', handlers.viewer)
.get('/getdoc', handlers.getdoc)
.post('/savedoc', bodyParser, csrf, handlers.savedoc)
app.use(denyRoutes);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment