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