0.0.4 • Published 7 years ago
typress v0.0.4
In development.
It's easy and organizer to grow up with typress.
File1.ts:
@Route({
path: '/',
method: 'get'
})
export class MyController {
Route(req: Request, res: Response, Next: NextFunction) {
res.send('Hello World');
}
}
Router.ts
import { MyController } from './File1'
@Router({
mountPoint: '/api',
routes: [MyController],
routers: [/** You can create a deep tree of routers */]
})
export class MyRouter { }