Serve Tailwind stylesheet
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user