dendrite/cmd/dendritejs
Kegsay 7c36fb78a7
Fix rooms v3 url paths for good - with tests (#1130)
* Fix rooms v3 url paths for good - with tests

- Add a test rig around `federationapi` to test routing.
- Use `JSONVerifier` over `KeyRing` so we can stub things out more easily.
- Add `test.NopJSONVerifier` which verifies nothing.
- Add `base.BaseMux` which is the original `mux.Router` used to spawn public/internal routers.
- Listen on `base.BaseMux` and not the default serve mux as it cleans paths which we don't want.
- Factor out `ListenAndServe` to `test.ListenAndServe` and add flag for listening on TLS.

* Fix comments

* Linting
2020-06-15 16:57:59 +01:00
..
jsServer.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
keyfetcher.go s/Base64String/Base64Bytes/g (#1093) 2020-06-04 11:50:57 +01:00
main.go Fix rooms v3 url paths for good - with tests (#1130) 2020-06-15 16:57:59 +01:00
main_noop.go Add peer-to-peer support into Dendrite via libp2p and fetch (#880) 2020-03-06 10:23:55 +00:00
publicrooms.go Add a way to force federationsender to retry sending transactions (#1077) 2020-06-01 18:34:08 +01:00