add examples of lua scripts

This commit is contained in:
2025-07-29 16:44:03 +03:00
parent e35972b8ad
commit 1c73d3f87a
3 changed files with 9 additions and 13 deletions

8
com/Utils/Echo.lua Normal file
View File

@@ -0,0 +1,8 @@
if not In.Params.msg or In.Params.msg == "" then
Out.Error = {
message = "there must be a msg parameter"
}
return
end
Out.Result.answer = In.Params.msg

1
com/Utils/Ping.lua Normal file
View File

@@ -0,0 +1 @@
Out.Result.answer = "pong"