-
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Labels
enhancementNew feature or requestNew feature or request
Milestone
Description
Both httpContext and injector are set by tachijs. To check they are set, we have to see one of them is defined like this.httpContext != null or this.injector != null.
To make it simple, I'm going to put everything in one property this.context.
So it will be like the below.
interface Context {
req: express.Request
res: express.Response
inject: (key: string) => any
}
class BaseController {
context?: Context
}This will be implemented next version and old legacy props, inject, injector and httpContext are deprecated from v1.
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request