Experiment with TUI implementation using illwill

This commit is contained in:
Jakob Friedl
2025-05-06 22:46:36 +02:00
parent 0c39fda207
commit 4af5295a2b
9 changed files with 169 additions and 126 deletions

View File

@@ -1,19 +0,0 @@
import prologue
# /agent/register
proc agentRegister*(ctx: Context) {.async.} =
let body: JsonNode = ctx.request.body().parseJson()
echo body
resp jsonResponse(body, Http200)
# /agent/{uuid}/tasks
proc agentTasks*(ctx: Context) {.async.} =
resp "<h1>Agent Tasks</h1>"
# /agent/{uuid}/results
proc agentResults*(ctx: Context) {.async.} =
resp "<h1>Agent Results</h1>"