1
2
3
4
5
6
7
8
9
import { testFormData } from "https://esm.town/v/rafter/testFormData";
export const saveFormData = (req: express.Request, res: express.Response) => {
// Pick out the form data
const formData = req.body;
testFormData.push(formData);
return res.send(`Thanks you submitted ${Object.keys(req.body)}`);
};
// Forked from @vtdocs.saveFormData