Skip to content

Instantly share code, notes, and snippets.

//register.ts
export class Register {
validateEmail(email){
return false;
}
onPostCheckMail (req, res) {
if(this.validateEmail(req.body.email) === true){ //validateEmail is undefined
res.end("available");