examples/hello-node: move handler to code/, split http.tf and job.tf

This commit is contained in:
“Naeel”
2026-03-08 09:14:34 +04:00
parent 7f5a881c8a
commit 00cd3d181b
4 changed files with 80 additions and 46 deletions
+6
View File
@@ -0,0 +1,6 @@
// handler.js — пример serverless функции на Node.js 20
// Возвращает приветствие с именем из event или "World" по умолчанию
exports.handle = async (event) => {
const name = event.name || 'World';
return { message: `Hello, ${name}! (nodejs20) епта !` };
};