Files

14 lines
375 B
Python
Raw Permalink Normal View History

2025-05-04 16:30:07 +03:00
from flask import Flask, request, jsonify
2025-05-04 22:26:56 +03:00
from flask_socketio import SocketIO, emit
from handlers.http import init_http_handlers
from handlers.socketio import init_socketio_handlers
2025-05-04 16:30:07 +03:00
2025-05-04 22:26:56 +03:00
app = Flask(__name__)
socketio = SocketIO(app,cors_allowed_origins="*")
init_socketio_handlers(socketio)
init_http_handlers(app)
2025-05-04 16:30:07 +03:00
if __name__ == '__main__':
2025-05-04 22:26:56 +03:00
socketio.run(app, debug=True)