attempting proxying

This commit is contained in:
2025-12-09 16:14:15 -05:00
parent fe8c914c09
commit f5fde4df5b

View File

@@ -19,6 +19,7 @@ logging.basicConfig(
stream=sys.stdout, stream=sys.stdout,
force=True # Override any existing config force=True # Override any existing config
) )
logger = logging.getLogger(__name__)
app = Flask(__name__) app = Flask(__name__)
#CORS(app, resources={r"/api/*": {"origins": ["http://localhost:3000", "http://localhost:5173"]}}) #CORS(app, resources={r"/api/*": {"origins": ["http://localhost:3000", "http://localhost:5173"]}})
@@ -32,7 +33,7 @@ CORS(app)
def events(): def events():
# Authenticate user or read a token # Authenticate user or read a token
user_id = request.args.get("user_id") user_id = request.args.get("user_id")
logger.info("Received events for user {}".format(user_id))
if not user_id: if not user_id:
return {"error": "Missing user_id"}, 400 return {"error": "Missing user_id"}, 400