263app.post("/", mainHandler);
264
265export default passwordAuth(app.fetch, { verifyPassword: verifyToken });
266
244app.post("/", mainHandler);
245
246export default passwordAuth(app.fetch, { verifyPassword: verifyToken });
247
227
228// Authentication Middleware
229export default passwordAuth(app.fetch, { verifyPassword: verifyToken });
230
107const app = new Hono();
108app.get('/', c => c.html(html));
109export default app.fetch;
110
278app.post("/", mainHandler);
279
280export default passwordAuth(app.fetch, { verifyPassword: verifyToken });
281
282// <form method="GET" action="/" class="flex">
149});
150
151export default app.fetch;
152
90});
91
92export default app.fetch;
93
13});
14
15export default app.fetch;
16
17
63 e.preventDefault();
64 const formData = new FormData(this);
65 const response = await fetch(location.href, { method: "POST", body: formData });
66 const data = await response.text();
67 document.getElementById("greetingMessage").innerHTML = data;
5
6export default async function scrapeWebsite(url: string) {
7 const response = await fetch(url);
8 const body = await response.text();
9 const $ = cheerio.load(body);