let { _hits } = await import("https://esm.town/v/healeycodes/_hits");
export let websiteHitCounter = (
req: express.Request,
res: express.Response
) => {
if (_hits === undefined) {
_hits = 1;
} else {
_hits++;
}
res.send(`
<html>
<body>
<h1>hit counter :)</h1>
<p>this website has received ${_hits} hits! try refreshing!</p>
<p>see the source code: <a href="https://www.val.town/v/healeycodes.websiteHitCounter">@healeycodes.websiteHitCounter</a></p>
<small>nice.</small>
</body>
</html>
`);
};