peppa/bench/base/product/routes.mjs
2026-11-17 02:09:17 +05:00

18 lines
472 B
JavaScript

import { html, page } from "./lib/http.mjs";
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("Продукт создаётся", "<h1>Продукт создаётся</h1><p>Скоро здесь будет сайт.</p>")),
},
];