From 4e0c407b7ffe816999d87298e28c14655df61d9f Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 13 Aug 2020 11:56:14 +0100 Subject: [PATCH] Fix gobind build --- build/gobind/monolith.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/build/gobind/monolith.go b/build/gobind/monolith.go index 9856f9589..2ea09f636 100644 --- a/build/gobind/monolith.go +++ b/build/gobind/monolith.go @@ -172,20 +172,20 @@ func (m *DendriteMonolith) Start() { ), } monolith.AddAllPublicRoutes( - base.ExternalClientAPIMux, - base.ExternalFederationAPIMux, - base.ExternalKeyAPIMux, - base.ExternalMediaAPIMux, + base.PublicClientAPIMux, + base.PublicFederationAPIMux, + base.PublicKeyAPIMux, + base.PublicMediaAPIMux, ) httpRouter := mux.NewRouter() httpRouter.PathPrefix(httputil.InternalPathPrefix).Handler(base.InternalAPIMux) - httpRouter.PathPrefix(httputil.ExternalClientPathPrefix).Handler(base.ExternalClientAPIMux) - httpRouter.PathPrefix(httputil.ExternalMediaPathPrefix).Handler(base.ExternalMediaAPIMux) + httpRouter.PathPrefix(httputil.PublicClientPathPrefix).Handler(base.PublicClientAPIMux) + httpRouter.PathPrefix(httputil.PublicMediaPathPrefix).Handler(base.PublicMediaAPIMux) yggRouter := mux.NewRouter() - yggRouter.PathPrefix(httputil.ExternalFederationPathPrefix).Handler(base.ExternalFederationAPIMux) - yggRouter.PathPrefix(httputil.ExternalMediaPathPrefix).Handler(base.ExternalMediaAPIMux) + yggRouter.PathPrefix(httputil.PublicFederationPathPrefix).Handler(base.PublicFederationAPIMux) + yggRouter.PathPrefix(httputil.PublicMediaPathPrefix).Handler(base.PublicMediaAPIMux) // Build both ends of a HTTP multiplex. m.httpServer = &http.Server{