from flask import Flask, render_template, request from publisher import publish_messages app = Flask(__name__) @app.route('/') def index(): return "это publisher" @app.route('/publish', methods=['GET']) def publish(): publish_messages() return 'Начало приема пациентов' if __name__ == '__main__': app.run(debug=True)