examples/hello-node: two different functions (http greeting, job sum)

This commit is contained in:
“Naeel”
2026-03-08 09:22:38 +04:00
parent 00cd3d181b
commit 4f0b8fb486
6 changed files with 43 additions and 26 deletions
+7
View File
@@ -0,0 +1,7 @@
// 2026-03-08
// handler-http.js — HTTP-функция: возвращает приветствие.
// Используется с sless_trigger (постоянный эндпоинт).
exports.handle = async (event) => {
const name = event.name || 'World';
return { message: `Hello, ${name}!` };
};