From 13e9d64bd28c81a1e191ee9cc656e7001d7ae198 Mon Sep 17 00:00:00 2001 From: Demian Parkhomenko <95881717+DemianParkhomenko@users.noreply.github.com> Date: Wed, 24 Jan 2024 00:22:11 +0200 Subject: [PATCH] Add metacom examples(#62) PR: https://github.com/dev-KPI/messenger-backend/pull/62 Issue: https://github.com/dev-KPI/messenger-frontend/issues/34 --- application/api/example/data.js | 9 +++++++++ application/api/system/introspect.js | 4 ++++ package-lock.json | 2 +- package.json | 2 +- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 application/api/example/data.js create mode 100644 application/api/system/introspect.js diff --git a/application/api/example/data.js b/application/api/example/data.js new file mode 100644 index 0000000..3f6208c --- /dev/null +++ b/application/api/example/data.js @@ -0,0 +1,9 @@ +({ + access: 'public', + + method: async () => { + return 'Hello world'; + }, + + returns: 'string', +}); diff --git a/application/api/system/introspect.js b/application/api/system/introspect.js new file mode 100644 index 0000000..d055e57 --- /dev/null +++ b/application/api/system/introspect.js @@ -0,0 +1,4 @@ +({ + access: 'public', + method: application.introspect, +}); diff --git a/package-lock.json b/package-lock.json index 6071da3..06e1b93 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9,7 +9,7 @@ "version": "1.0.0", "license": "MIT", "dependencies": { - "impress": "^3.0.11" + "impress": "^3.0.13" }, "devDependencies": { "@flydotio/dockerfile": "^0.4.10", diff --git a/package.json b/package.json index 9990e5e..11a5602 100644 --- a/package.json +++ b/package.json @@ -21,7 +21,7 @@ }, "license": "MIT", "dependencies": { - "impress": "^3.0.11" + "impress": "^3.0.13" }, "devDependencies": { "@flydotio/dockerfile": "^0.4.10",