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 13:36:51 +02:00
|
|
|
a = 10
|
|
|
|
b = 11
|
2022-05-26 22:24:24 +02:00
|
|
|
try:
|
2022-06-02 13:36:51 +02:00
|
|
|
return """This 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)
|