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
validateRegister(req.body).then(function(){ | |
return db.createUser(req.body.name, req.body.email, req.body.password); | |
}).then(function(newUser){ | |
console.log(2); | |
res.send({state: 'success', name: newUser.name}); | |
}).catch(function(err){ | |
res.send(500); | |
}); |
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
#include <iostream> | |
#include "Rectangle.h" | |
Rectangle::Rectangle() : | |
m_Width(0), m_Height(0), m_Unit('#') | |
{ | |
// empty | |
} | |
Rectangle::Rectangle(int width, int height) : |