corebasic 1.0.94 → 1.0.95

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.
Files changed (2) hide show
  1. package/libs/features.js +6 -0
  2. package/package.json +1 -1
package/libs/features.js CHANGED
@@ -60,6 +60,12 @@ export const start = async (app, url, file) => {
60
60
  features = await Utils.fileToJson(url, file)
61
61
  await announce()
62
62
 
63
+ app.get('/features', async (req, res) => {
64
+ let exp_features = {}
65
+ for (let [key, {api}] of Object.entries(features))
66
+ exp_features[key] = {api, service: `${SERVICE_ADDRESS}`}
67
+ res.json({ data: { ...SLYP_FEATURES_LIST, ...exp_features } })
68
+ })
63
69
 
64
70
  // Registering handlers
65
71
  for (let name in features) {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "corebasic",
3
3
  "type": "module",
4
- "version": "1.0.94",
4
+ "version": "1.0.95",
5
5
  "description": "",
6
6
  "main": "index.js",
7
7
  "scripts": {