et
v0.0.4
Published
effortlessness, et al.
Downloads
17
Readme
et
effortlessness et al.
Usage
thing.coffee
class Thing
@get: (id) ->
the: 'route /things/:id was defined'
because: 'the model defined get(id)'
uTodo: "get thing:#{id} from db"
module.exports = Thing
server.coffee
app = require('express')()
rest = require('et').Rest
app.use rest.config
app: app
models:
things: require './thing'
app.listen 3000
result
Changelog
2012-12-09 (0.0.1)
- Added support for http GET to Ebb.Rest
- Transparently plugin to express' routing