fix(api): exclude python register from auth (#4949)

diff --git a/backend/server/api/api.go b/backend/server/api/api.go
index 7f09f56..c0d4c1f 100644
--- a/backend/server/api/api.go
+++ b/backend/server/api/api.go
@@ -73,6 +73,12 @@
 	// For both protected and unprotected routes
 	router.GET("/ping", ping.Get)
 	router.GET("/version", version.Get)
+	// Check if remote plugins are enabled
+	remotePluginsEnabled := v.GetBool("ENABLE_REMOTE_PLUGINS")
+	if remotePluginsEnabled {
+		// Add endpoint to register remote plugins
+		router.POST("/plugins/register", remote.RegisterPlugin(router, registerPluginEndpoints))
+	}
 
 	if awsCognitoEnabled {
 		// Add login endpoint
@@ -81,13 +87,6 @@
 		router.Use(auth.AuthenticationMiddleware)
 	}
 
-	// Check if remote plugins are enabled
-	remotePluginsEnabled := v.GetBool("ENABLE_REMOTE_PLUGINS")
-	if remotePluginsEnabled {
-		// Add endpoint to register remote plugins
-		router.POST("/plugins/register", remote.RegisterPlugin(router, registerPluginEndpoints))
-	}
-
 	// Endpoint to proceed database migration
 	router.GET("/proceed-db-migration", func(ctx *gin.Context) {
 		// Check if migration requires confirmation