refactor: Simplify handler signatures and add server runner

- Pass URL params as direct arguments to handlers
- Use `ctx.get_custom_header` to retrieve session key
- Add a runnable script to start the heroserver
- Clean up formatting in documentation and code
- Remove unused redisclient import
This commit is contained in:
Mahmoud-Emad
2025-09-14 18:24:30 +03:00
parent 92c8a3b955
commit ad906b5894
5 changed files with 30 additions and 37 deletions

View File

@@ -0,0 +1,6 @@
#!/usr/bin/env -S v -n -w -cg -gc none -cc tcc -d use_openssl -enable-globals run
import freeflowuniverse.herolib.hero.heroserver
mut server := heroserver.new_server(port: 8080)!
server.start()!