Fleshed out API, added simple email support.

This commit is contained in:
2018-07-04 08:17:12 +10:00
parent aa532e0fc8
commit 13982239d4
12 changed files with 343 additions and 7 deletions

View File

@ -135,6 +135,7 @@ class Server {
getLandingFile() {return path.join(this.app.getPublicDirectory(), LANDING_FILE);}
getExpress() {return this.express;}
getAPI() {return this.api;}
getApp() {return this.app;}
isRunning() {
if(typeof this.http !== typeof undefined) {
@ -235,7 +236,11 @@ class Server {
}
onWatchChange(error, stats) {
if(error) console.log(error);
if(error || (stats.compilation.errors && stats.compilation.errors.length)) {
console.error(error || stats.compilation.errors);
} else {
console.log("Server compiled!");
}
}
onGetRequest(req, res) {