Remove legacy client-manager workflows
This commit is contained in:
@@ -29,10 +29,7 @@ func (h *coreHandlers) requireAuthorizedAPI(next http.Handler) http.Handler {
|
||||
|
||||
func publicAPIRequest(r *http.Request) bool {
|
||||
path := r.URL.Path
|
||||
if path == "/api/v1/auth/login" || path == "/api/v1/auth/register" || path == "/api/v1/client-managers/register" || path == "/api/v1/client-managers/heartbeat" {
|
||||
return true
|
||||
}
|
||||
if strings.HasPrefix(path, "/api/v1/game-client-bridge/companion/") {
|
||||
if path == "/api/v1/auth/login" || path == "/api/v1/auth/register" {
|
||||
return true
|
||||
}
|
||||
if r.Method != http.MethodGet {
|
||||
|
||||
Reference in New Issue
Block a user