Package Exports
- sodor
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (sodor) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Sodor
Controller dispatching for Livewire. Which lets you write routes like
class Post extends Controller {
read(id) { ... }
@put update(id) { ... }
@post delete(id) { ... }
}
/* ES6 with Traceur annotations */where the function arguments become URL parameters and http method decorators do what you think.
Installation
npm install sodor
Usage
Declare a few controller classes, then call e.g. Post.routes() and pass it to livewire.route.
For more information see the API docs
Licence
MIT. © 2014 Matt Brennan