Nonchalantly Performs Magic

    hapi-controllers2
    TypeScript icon, indicating that this package has built-in type declarations

    3.0.9 • Public • Published

    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

    Keywords

    none

    Install

    npm i hapi-controllers2

    DownloadsWeekly Downloads

    0

    Version

    3.0.9

    License

    MIT

    Last publish

    Collaborators

    • phuonghuynh