18 lines
472 B
JavaScript
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>")),
|
|
},
|
|
];
|