import { html, json, page } from "./lib/http.mjs"; const home = `

Робостарт

Школа робототехники для детей от 6 до 14 лет.

Записаться на пробный урок

`; export const routes = [ { method: "GET", path: "/healthz", handler: ({ res }) => { res.writeHead(200, { "content-type": "text/plain; charset=utf-8" }); res.end("ok"); }, }, { method: "GET", path: "/", handler: ({ res }) => html(res, page("Робостарт", home)) }, // Запись на пробный урок. Заявка: { childName, phone, age }. { method: "GET", path: "/signup", handler: ({ res }) => html(res, page("Запись на пробный урок", "

Запись на пробный урок

Скоро здесь будет форма.

")) }, { method: "POST", path: "/api/signups", handler: ({ res }) => json(res, 501, { error: "Пока не сделано" }) }, ];