DmitrMakeev commited on
Commit
8a32522
1 Parent(s): 20f046a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -1
app.py CHANGED
@@ -118,8 +118,11 @@ def get_image():
118
 
119
 
120
 
121
- @app.route('/own_url', methods=['GET'])
122
  def get_own_url():
 
 
 
123
  return own_url, 200
124
 
125
  @app.route('/se_mes_im2', methods=['GET'])
 
118
 
119
 
120
 
121
+ @app.route('/own_url', methods=['POST'])
122
  def get_own_url():
123
+ own_url = request.form.get('own_url') # URL сервера из тела запроса
124
+ if own_url is None:
125
+ return "OWN_URL not provided in the request", 400
126
  return own_url, 200
127
 
128
  @app.route('/se_mes_im2', methods=['GET'])