koakit
v0.7.0
Published
Koa support for Restkit. A toolkit for node servers that adds Decorators, Rules, and Injectables.
Downloads
10
Maintainers
Readme
Koa support for Restkit.
Install
npm install koakit --save
Start
import {Koakit} from 'koakit';
Koakit.start();
Use
import {Route, Param, Query, Header, Body} from 'koakit';
export class UserRouter {
@Route('PUT', '/user/:id')
public updateUser(@Param('id') id: string, @Query('foo') foo: string, @Header('Authorization') auth: string, @Body() update: any) {
}
}