0.1.0 • Published 8 years ago

teq-router v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

TeQ Router

NPM

Build Status Code Climate bitHound Score

Installation

$ npm install teq-router

Build

$ npm run build

Test

$ npm test

API Documentation

Class: Route

Route.constructor(method: String, path: String , data: Object)
Route.match(method: String, url: String): Object
Route.generate(parameters: Object): String

Class: Router

Router.addRoute(key: String, route: Route): Router
Router.setRoutes(routes: Object): Router
Router.match(method: String, url: String): Object
Router.getRoute(key: String): Route
Router.generate(key: String , parameters: Object): String

License

MIT

0.1.0

8 years ago

0.0.2

9 years ago

0.0.1

9 years ago