18 lines
348 B
Python
18 lines
348 B
Python
from flask import Flask
|
|
from flask import request
|
|
import json
|
|
import flask
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/test_app1', methods=['POST', 'GET'])
|
|
def route1():
|
|
a = 104
|
|
b = 11
|
|
try:
|
|
return """4545This is automatically updating application """+ str(a+b)
|
|
except:
|
|
return "400", 400
|
|
|
|
|
|
app.run(host='0.0.0.0', port=6960)
|