Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Phinetwork committed Dec 13, 2024
1 parent e099c59 commit 62b279f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backend/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,10 +29,10 @@
# Configure logging
logging.basicConfig(level=logging.INFO)
app.logger.setLevel(logging.INFO)
app.logger.info("Initializing the Skyriz Backend")
app.logger.info("Initializing the Skill Match Bot Backend")

# Configure allowed origins for CORS
ALLOWED_ORIGINS = os.getenv("ALLOWED_ORIGINS", "https://skyriz.app/").split(",")
ALLOWED_ORIGINS = os.getenv("ALLOWED_ORIGINS", "https://skyriz.app").split(",")
ALLOWED_ORIGINS = [origin.strip() for origin in ALLOWED_ORIGINS]
CORS(app, resources={r"/*": {"origins": ALLOWED_ORIGINS}})
app.logger.info(f"CORS enabled for frontend URLs: {ALLOWED_ORIGINS}")
Expand Down Expand Up @@ -243,7 +243,7 @@ def habit_tracker():
@app.route("/", methods=["GET"])
def home():
app.logger.info("Root endpoint accessed")
return jsonify({"message": "Skyriz Backend is running!"})
return jsonify({"message": "Skill Match Bot Backend is running!"})

# New Authentication Routes

Expand Down

0 comments on commit 62b279f

Please sign in to comment.