Experiment with Listener Creation

This commit is contained in:
Jakob Friedl
2025-05-02 18:10:30 +02:00
parent f2fb926e4b
commit 0c39fda207
7 changed files with 131 additions and 0 deletions

9
server/index.nim Normal file
View File

@@ -0,0 +1,9 @@
import prologue
# /
proc root*(ctx: Context) {.async.} =
resp "<h1>Hello, World!</h1>"
# /auth
proc auth*(ctx: Context) {.async.} =
resp "<h1>Hello, Auth!</h1>"