curtcox-commandprocessortest.web.val.run
1
2
3
4
5
6
7
8
9
10
11
import { command_processor } from "https://esm.town/v/curtcox/command_processor";
import { form } from "https://esm.town/v/curtcox/command_processor_test_form";
async function process(command: string): Promise<string> {
const result = await command_processor(command);
return result.output.content;
}
export default async function(req: Request): Promise<Response> {
return form(req, process);
}
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!
May 30, 2024