Skip to content

Instantly share code, notes, and snippets.

@nartc
Created February 23, 2018 14:07
Show Gist options
  • Save nartc/4e09058e9c4234020af7a31d0bf30dd3 to your computer and use it in GitHub Desktop.
Save nartc/4e09058e9c4234020af7a31d0bf30dd3 to your computer and use it in GitHub Desktop.
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