Marlins are among the fastest marine swimmers
1
...greatly exaggerated speeds are often claimed in popular literature
1
1
— Source: Wikipedia
A Nim port of Lukeed's Trouter 🐟.
Long story short; it's a router.
Writing this port to
- understand the inner workings
- get better at writing libraries
- have a shiny new router to work with
Work in progress.
import marlin, std/with, sugar
with marlin.router:
get "/pizza", () => "pizza is ready!"
get "/hamburger", () => "who ordered a hamburger?"
get "/songs/:artist/reviews/:song?", () => "bruh"
post "/songs/:artist/:album", () => "mister postman."
src/regex
→ Nim port of Lukeed'sRegexParams
.