Create Val Town Guide on feTS docs site
stevekrouse opened this issue · comments
FeTS server example that works with Val Town:
import { createRouter, Response } from "npm:fets";
const router = createRouter().route({
method: "GET",
path: "/greetings",
schemas: {
responses: {
200: {
type: "object",
properties: {
message: {
type: "string",
},
},
required: ["message"],
additionalProperties: false,
},
},
},
handler: () => Response.json({ message: "Hello World!" }),
});
export default router.fetch;
@Xkonti - sorry I wasn't clear, this ticket is a mirror of the ticket ont he feTS docs site. I wanted you to submit a pull request to their docs not ours. Could you do that?
I'll unlink this ticket from your PR and merge that. It's still a great addition to our docs. Thanks!
@stevekrouse Sure thing!