0.0.4 • Published 11 years ago

et v0.0.4

Weekly downloads
18
License
-
Repository
github
Last release
11 years ago

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