create restful apis for wintersmith preview mode
- uses restful, resourceful from flatiron
2014.12.01: Only works with the wintersmith branch feature/middleware
plugins = [
...
'wintersmith-middleware-restful'
...
]
...
restful:
resources: './src/resources'
exports.User = ->
@use 'memory'
@restful = true
@timestamps()
@number 'id'
@bool 'active', default: false
@string 'username'
@string 'email', format: 'email', require: true
@string 'password'
@string 'first_name'
@string 'last_name'