import { GET , POST , PUT , RestController } from '@libstack/server' ; import { Request } from 'express' ; import { DELETE } from '@libstack/router' ; @ RestController ( '/sample-router' ) class TestRouter { @ GET ( '/' ) async get ( { query , headers } ) { return { query , headers } ; } @ PUT ( '/' ) async put ( { body } ) { return { body } ; } @ POST ( '/' ) async post ( { body } ) { return { body } ; } @ DELETE ( '/' ) async deletee ( ) { return { message : 'Deleted!' } ; } }