Skip to content

Instantly share code, notes, and snippets.

@lancejpollard
Created November 22, 2012 04:45
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 lancejpollard/249240a691c4bfa389c0 to your computer and use it in GitHub Desktop.
Save lancejpollard/249240a691c4bfa389c0 to your computer and use it in GitHub Desktop.
Tower App API Ideas
// http://i18next.com/node/
App.get
App.set
App.field
App.param
App.post
App.del
App.put
App.configure
App.serialize
App.validate
App.render
App.locals
App.use
App.engine
App.settings
App.helpers
App.listen
App.models
App.views
App.controllers
App.routes
App.connections
App.validators
App.serializers // App.types
App.operators // gte/lte
App.modifiers // push/pull
App.types // date/bitmask/etc.
App.formats // application/json etc.
App.parse('application/json', function(req) {
req.text = ''
req.on('data', fn);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment