examples/hello-node: two different functions (http greeting, job sum)
This commit is contained in:
@@ -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}!` };
|
||||
};
|
||||
Reference in New Issue
Block a user