done
This commit is contained in:
parent
552c412c17
commit
bf1881ccb5
13 changed files with 551 additions and 148 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue