@leofcoin/endpoints 0.2.14 → 0.2.16
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.
- package/exports/http.js +4 -0
- package/exports/shared.js +6 -1
- package/exports/ws.js +4 -1
- package/package.json +1 -1
package/exports/http.js
CHANGED
|
@@ -176,6 +176,10 @@ export default (chain, port, networkVersion) => {
|
|
|
176
176
|
}
|
|
177
177
|
})
|
|
178
178
|
|
|
179
|
+
router.get('/bootstrap', async ctx => {
|
|
180
|
+
ctx.body = (await shared.bootstrap()).map(value => value.toString())
|
|
181
|
+
})
|
|
182
|
+
|
|
179
183
|
// todo finish ...
|
|
180
184
|
api.use(cors('*'))
|
|
181
185
|
api.use(router.routes())
|
package/exports/shared.js
CHANGED
package/exports/ws.js
CHANGED