hapi-controllers2
v3.0.9
Published
Enhance of https://github.com/dupski/hapi-controllers
Downloads
4
Readme
hapi-controllers2
Enhance of https://github.com/dupski/hapi-controllers
import { Controller, Route, mapping_number } from 'hapi-controllers';
import { ISomeDependency } from './SomeDependency';
export class MyController extends Controller {
constructor(private dependency: ISomeDependency) {
super();
}
@Route({method: 'GET',path: '/stuff'})
public stuffPage(@mapping_number sample_number: number) {
this.reply(`This is the stuff page ${number}...`);
}
}
License
MIT