diff options
author | Kegsay <kegan@matrix.org> | 2020-06-16 14:53:19 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-16 14:53:19 +0100 |
commit | 1942928ee5e0398beed45c8b1c63d7b13e89b646 (patch) | |
tree | 0313e9168df851bd1eef314bbc04aed301114e4c /federationapi/federationapi.go | |
parent | 45011579eb65842821dff73fc2028db9d6bf7b93 (diff) |
Make federationapi use userapi (#1135)
Removes dependencies on account DB, device DB and ASAPI.
Diffstat (limited to 'federationapi/federationapi.go')
-rw-r--r-- | federationapi/federationapi.go | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/federationapi/federationapi.go b/federationapi/federationapi.go index db272f1c..c0c00043 100644 --- a/federationapi/federationapi.go +++ b/federationapi/federationapi.go @@ -16,13 +16,11 @@ package federationapi import ( "github.com/gorilla/mux" - appserviceAPI "github.com/matrix-org/dendrite/appservice/api" - "github.com/matrix-org/dendrite/clientapi/auth/storage/accounts" - "github.com/matrix-org/dendrite/clientapi/auth/storage/devices" eduserverAPI "github.com/matrix-org/dendrite/eduserver/api" federationSenderAPI "github.com/matrix-org/dendrite/federationsender/api" "github.com/matrix-org/dendrite/internal/config" roomserverAPI "github.com/matrix-org/dendrite/roomserver/api" + userapi "github.com/matrix-org/dendrite/userapi/api" "github.com/matrix-org/dendrite/federationapi/routing" "github.com/matrix-org/gomatrixserverlib" @@ -32,19 +30,17 @@ import ( func AddPublicRoutes( router *mux.Router, cfg *config.Dendrite, - accountsDB accounts.Database, - deviceDB devices.Database, + userAPI userapi.UserInternalAPI, federation *gomatrixserverlib.FederationClient, keyRing gomatrixserverlib.JSONVerifier, rsAPI roomserverAPI.RoomserverInternalAPI, - asAPI appserviceAPI.AppServiceQueryAPI, federationSenderAPI federationSenderAPI.FederationSenderInternalAPI, eduAPI eduserverAPI.EDUServerInputAPI, ) { routing.Setup( - router, cfg, rsAPI, asAPI, + router, cfg, rsAPI, eduAPI, federationSenderAPI, keyRing, - federation, accountsDB, deviceDB, + federation, userAPI, ) } |