Parcourir la source

added port and host properties to app object

master
mortie il y a 6 ans
Parent
révision
b4155771e7
2 fichiers modifiés avec 3 ajouts et 1 suppressions
  1. 2
    0
      index.js
  2. 1
    1
      package.json

+ 2
- 0
index.js Voir le fichier

@@ -52,6 +52,8 @@ class App {

this.server.listen(port, host);
this.info("Listening on "+host+":"+port);
this.port = port;
this.host = host;
}

this._routeMap = {};

+ 1
- 1
package.json Voir le fichier

@@ -1,6 +1,6 @@
{
"name": "webframe",
"version": "0.8.1",
"version": "0.8.2",
"description": "Web framework.",
"main": "index.js",
"scripts": {

Chargement…
Annuler
Enregistrer