import prologue import templating proc getIndex*(ctx: Context) {.async.} = resp renderIndex() proc runWebsite() = let website = newApp() website.get("/", getIndex) website.run() export runWebsite