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