test_app1/app.py

18 lines
348 B
Python
Raw Normal View History

2022-05-26 22:24:24 +02:00
from flask import Flask
from flask import request
import json
import flask
app = Flask(__name__)
@app.route('/test_app1', methods=['POST', 'GET'])
def route1():
2022-06-02 14:01:39 +02:00
a = 104
2022-06-02 13:36:51 +02:00
b = 11
2022-05-26 22:24:24 +02:00
try:
2022-06-02 14:01:39 +02:00
return """4545This is automatically updating application """+ str(a+b)
2022-05-26 22:24:24 +02:00
except:
return "400", 400
2022-06-02 13:42:49 +02:00
app.run(host='0.0.0.0', port=6960)