DAS_2023_1/antonov_dmitry_lab4/rabbitmq/app.py
2023-12-05 12:35:35 +04:00

20 lines
364 B
Python

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)