11 lines
329 B
Python
11 lines
329 B
Python
import os
|
|
from flask import Blueprint, jsonify
|
|
|
|
config_bp = Blueprint("config", __name__)
|
|
|
|
|
|
@config_bp.get("/api/v1/config/whatsapp")
|
|
def get_whatsapp_config():
|
|
"""Returns the configured WhatsApp number (no auth required)."""
|
|
number = os.environ.get("WHATSAPP_NUMBER", "")
|
|
return jsonify({"whatsapp_number": number})
|