- Implemented the initial version of the web interface. refactor: Begin Telegram bot refactoring - Started restructuring the bot’s code for better maintainability. chore: Migrate to Flask project structure - Reorganized the application to follow Flask's project structure. cleanup: Extensive code cleanup - Removed redundant code and improved readability. Signed-off-by: UdoChudo <stream@udochudo.ru>
13 lines
443 B
Python
13 lines
443 B
Python
from flask import Blueprint, request, jsonify
|
|
from app.services.notifications_service import NotificationService
|
|
|
|
notification_bp = Blueprint('notification', __name__,url_prefix='/notifications')
|
|
|
|
|
|
@notification_bp.route('/', methods=['POST'], strict_slashes=False)
|
|
def notification():
|
|
service = NotificationService()
|
|
data = request.get_json()
|
|
result, status = service.process_notification(data)
|
|
return jsonify(result), status
|