rename endpoint

This commit is contained in:
mlsmaycon
2026-02-09 01:48:51 +01:00
parent 7c996ac9b5
commit 09a1d5a02d
4 changed files with 10 additions and 3 deletions

View File

@@ -9,6 +9,7 @@ import (
"time"
"github.com/gorilla/mux"
"github.com/netbirdio/netbird/management/server/types"
"github.com/rs/cors"
log "github.com/sirupsen/logrus"
@@ -83,7 +84,7 @@ func NewAPIHandler(ctx context.Context, accountManager account.Manager, networks
return nil, fmt.Errorf("failed to add bypass path: %w", err)
}
// OAuth callback for proxy authentication
if err := bypass.AddBypassPath("/api/oauth/callback"); err != nil {
if err := bypass.AddBypassPath(types.ProxyCallbackEndpoint); err != nil {
return nil, fmt.Errorf("failed to add bypass path: %w", err)
}