summaryrefslogtreecommitdiff
path: root/router.go
AgeCommit message (Collapse)Author
2023-02-14no need to combine sub-router params any moretjpcc
2023-02-14Router improvements.tjpcc
- test coverage for Router, not just PathTree - Router.Mount() now flattens routes into the parent router - Router.Use() implemented to set middleware on a router itself
2023-02-02Mount() adds a subrouter under a prefix pattern.tjpcc
...though I'm already eyeing a better approach.
2023-02-02Initial Router work.tjpcc
- Router type, supports: adding handlers, serving, fetching the matching handler for a route. - Private PathTree type handles the modified radix trie.