legit

Fork of https://git.icyphox.sh/legit

Fix URLs including refs with slashes handled incorrectly Massive refactor. The net/http.ServeMux is still useless for this level of routing requirements. I initially tried to encode slash characters but they decode path components and they say it's not a bug. huh? Thankfully, URL structure of legit is tidy and organized so I could just write "mux" using if statement and switch statement. To be honest, I quit like this approach compared to sprinkling string patterns everywhere using struct holding mutex for weird usecase. I'm not including this in a patch release considering the amount of changes I made. As a test, I ran cmd/save-commit-pages against Zig repository cloned under demo/ directory before and after this patch. "diff" command showed nothing and exited with 0, so at least commit page is not regressed.

Changes

42 changed files (+1385/-1211)