Serve Tailwind stylesheet

This commit is contained in:
rajchales-monito
2026-08-06 17:20:20 +02:00
parent 86df1bf0b0
commit 782541338c
+1
View File
@@ -71,6 +71,7 @@ async function route(req, res) {
res.setHeader("Cache-Control", "no-store, max-age=0");
return file(res, path.join(PUBLIC_DIR, "widget.js"), "application/javascript; charset=utf-8");
}
if (req.method === "GET" && url.pathname === "/tailwind.css") return file(res, path.join(PUBLIC_DIR, "tailwind.css"), "text/css; charset=utf-8");
if (req.method === "GET" && url.pathname.startsWith("/admin.")) return servePublic(res, url.pathname);
if (url.pathname.match(/^\/api\/telegram\/webhook\/[^/]+$/) && req.method === "POST") return telegramWebhook(req, res, url);