Skip to content

v0.10.0

Compare
Choose a tag to compare
@Rokt33r Rokt33r released this 16 Jan 05:19
· 35 commits to master since this release
114d3bd

Features

  • Introduce BaseController#context. To know more, check #22.
interface Context {
  req: express.Request
  res: express.Response
  inject<S>(key: string): S
}

export class BaseController {
  context?: Context
  ...

Due to the introducing, BaseController#inject, BaseController#injector and BaseController#httpContext will be deprecated from v1. For now, it will just show warning messages.