import { ApiController , Controller , HttpGet , SendsResponse , HttpPost , HttpAll } from '../../../../index' ; @ Controller ( '/home' ) export class HomeController extends ApiController { @ SendsResponse ( ) @ HttpGet ( '/name' ) getName ( ) { this . response . json ( 'HomeController' ) ; } @ SendsResponse ( ) @ HttpGet ( '/get/:id' ) get ( id ) { this . response . json ( `get => params.id: ${ this . request . params . id } and id: ${ id }` ) ; } @ SendsResponse ( ) @ HttpGet ( '/getData/:id?' ) getData ( id ) { this . response . json ( `get => params.id: ${ this . request . params . id } and id: ${ id }` ) ; } @ SendsResponse ( ) @ HttpGet ( '/get/:id/fotos/:image' ) getMore ( image , id ) { this . response . json ( `get => params.id: ${ this . request . params . id },
        params.image: ${ this . request . params . image } and
        id: ${ id }, image: ${ image }` ) ; } @ SendsResponse ( ) @ HttpGet ( '/query/:name' ) query ( name , search ) { this . response . json ( `get => params.name: ${ this . request . params . name },
        and name: ${ name }, search: ${ search }` ) ; } @ SendsResponse ( ) @ HttpAll ( '/all/:id' ) all ( id ) { this . response . json ( `${ this . request . method } => params.id: ${ this . request . params . id } and id: ${ id }` ) ; } @ SendsResponse ( ) @ HttpPost ( '/post/:id' ) post ( body , id ) { this . response . json ( `post => params.id: ${ this . request . params . id } and id: ${ id }.
        and request.body: ${ JSON . stringify ( this . request . body ) }, injected args:
            ${ JSON . stringify ( body ) }` ) ; } }