1
2
3
4
5
6
7
8
9
10
11
import { mails } from "https://esm.town/v/henrik/mails";
// View at https://api.val.town/express/@stevekrouse.expressHTMLExample?name=Steve
export async function expressHTMLExample2(
req: express.Request,
res: express.Response
) {
mails.push(req.body);
return res.send(`<h1>Hi ${req.body.name}!</h1>`);
}
// Forked from @stevekrouse.expressHTMLExample2
Val Town is a social website to write and deploy JavaScript.
Build APIs and schedule functions from your browser.
Comments
Nobody has commented on this val yet: be the first!
October 23, 2023