File tree 1 file changed +2
-2
lines changed
1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -149,11 +149,11 @@ func main() {
149
149
apiAuthenticationHandler := api .NewAuthenticationHandler (authenticator )
150
150
151
151
mux := http .NewServeMux ()
152
+ mux .Handle (v1connect .NewAuthenticationHandler (apiAuthenticationHandler ))
152
153
if cfg .GetMultihost () != nil {
153
154
// alpha feature, only available if the user manually enables it in the config.
154
- mux .Handle (v1connect .NewAuthenticationHandler ( apiAuthenticationHandler ))
155
+ mux .Handle (v1connect .NewBackrestSyncServiceHandler ( syncHandler ))
155
156
}
156
- mux .Handle (v1connect .NewBackrestSyncServiceHandler (syncHandler ))
157
157
backrestHandlerPath , backrestHandler := v1connect .NewBackrestHandler (apiBackrestHandler )
158
158
mux .Handle (backrestHandlerPath , auth .RequireAuthentication (backrestHandler , authenticator ))
159
159
mux .Handle ("/" , webui .Handler ())
You can’t perform that action at this time.
0 commit comments