This commit is contained in:
grngxd 2024-12-26 11:00:16 +00:00
parent 552c412c17
commit bf1881ccb5
13 changed files with 551 additions and 148 deletions

View file

@ -16,7 +16,7 @@ sql"""CREATE TABLE IF NOT EXISTS keys(
proc index*(ctx: Context) {.async.} =
for x in db.fastRows(sql"SELECT * FROM keys"):
echo x
await ctx.staticFileResponse("web/index.html", "")
await ctx.staticFileResponse("public/index.html", "")
proc ip_exists*(ip: string): bool =
return len(db.getAllRows(sql"SELECT * FROM keys WHERE ip=?", ip)) != 0