@live-change/framework 0.5.24 → 0.5.25

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -85,6 +85,7 @@ class ServiceDefinition {
85
85
  this.processors = []
86
86
  this.authenticators = []
87
87
  this.beforeStartCallbacks = []
88
+ this.endpoints = []
88
89
  this.validators = defaultValidators
89
90
  for(let key in definition) this[key] = definition[key]
90
91
  }
@@ -149,6 +150,10 @@ class ServiceDefinition {
149
150
  this.beforeStartCallbacks.push(callback)
150
151
  }
151
152
 
153
+ endpoint(endpoint) {
154
+ this.endpoints.push(endpoint)
155
+ }
156
+
152
157
  toJSON() {
153
158
  let models = {}
154
159
  for(let key in this.models) models[key] = this.models[key].toJSON()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@live-change/framework",
3
- "version": "0.5.24",
3
+ "version": "0.5.25",
4
4
  "description": "Live Change Framework - ultimate solution for real time mobile/web apps",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -35,5 +35,5 @@
35
35
  "tape": "^5.3.2",
36
36
  "websocket": "^1.0.34"
37
37
  },
38
- "gitHead": "2fb6050c59e88d0dd285d640e454819d30130b0b"
38
+ "gitHead": "014a45f0a666820dc25eb728be2fe92834cb89ee"
39
39
  }