-
Notifications
You must be signed in to change notification settings - Fork 397
Closed
Labels
type: featureIssues related to new features.Issues related to new features.
Description
Is the @Session decorator avaible?
I attach to req.session an user object after sucessfull authentication and use it in controler method to check if user is an owner of demanded object from database.
It would be nice to have :
@Get("/posts")
getAll(@Session("user") user: User) {
return postsRepository.getAllByUser(user);
}
And don't have to parse request object by myself 😉
Metadata
Metadata
Assignees
Labels
type: featureIssues related to new features.Issues related to new features.