Created
February 23, 2018 14:07
-
-
Save nartc/4e09058e9c4234020af7a31d0bf30dd3 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export class UserController extends BaseController<IUser, User> { | |
userModel: User; | |
constructor(_userModel: User) { | |
super(_userModel); | |
this.userModel = _userModel; | |
} | |
// UserController will have the CRUD from BaseController, no need to write those here. But register() and login() is of different logic. | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment