summaryrefslogtreecommitdiff
path: root/mux.go
AgeCommit message (Collapse)Author
2023-02-11Make multiplexer regular handlersxengineering
Multiplexer functions used to return closures which are able to handle HTTP requests for historc reasons. Now the multiplexers can be regular HTTP handlers which is simpler.
2023-02-11Switch to global database pointerxengineering
Passing the database pointer around is a lot of text and has no benefit.
2023-02-11Switch webserver to global config structxengineering
2023-02-09Migrate to multiplexer conceptxengineering
This introduces a layered approach to handling HTTP requests: - server layer - path layer - request layer The multiplexer file cares about the path layer. It delegates the request handling to handlers from the request layer.