Skip to content

Use httptreemux for routing

Peter Werner requested to merge use-httptreemux-for-routing into master

This contains the transition to httptreemux for routing. In the course of the changes this brought, the handlers have also been rewritten and do now support mocking of dependencies.

As a side the error handling has been improved and now supports a full page as response if the request was not for a fragment. The system should be more robust and more transparent to the user when errors occur.

@All since this is a major rewrite it would be really good if lots of people review this MR so everything will still work fine after the merge.

This MR should also help with #63.

Acceptance criteria

  • Coverage is higher or equal to coverage on master coverage
  • CI runs without problems
  • Code doesn't contain TODOs or unused functions
  • Code has been inspected and deemed to have decent quality [effectiveGo]: https://golang.org/doc/effective_go.html

Closes #148 (closed), #111 (closed), #62 (closed)

Edited by Timo Heim

Merge request reports