Back to marketplace
Source Preview
typescript
import fn from "@hostfunc/sdk";
// HTTP endpoint. POST { "name": "Ada" } — or GET ?name=Ada
export async function main(input: { name?: string }) {
const name = input.name?.trim() || "world";
fn.log("info", "hello.invoked", { name });
return {
message: `hello, ${name}`,
invokedAt: new Date().toISOString(),
};
}
About
No README has been published for this function yet.
Discussion
0Join the discussion
Sign in to comment, reply, and star functions you love.
Start the conversation.
Share a use case, ask a question, or suggest an improvement. Be the first to comment on this function.