changed message to 'Joe mama'

This commit is contained in:
Wojciech Kubicki 2023-05-26 02:13:01 +02:00
parent 821bf1c9d9
commit f11ee9f51b
1 changed files with 14 additions and 14 deletions

View File

@ -1,14 +1,14 @@
from flask import Flask, request
import json
app = Flask(__name__)
@app.route('/restart-this-app')
def funky_function():
data = { 'message': "Hello World!" }
response = json.dumps(data)
return response, 200, { 'Content-Type': 'application/json' }
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5002)
from flask import Flask, request
import json
app = Flask(__name__)
@app.route('/restart-this-app')
def funky_function():
data = { 'message': "Joe mama" }
response = json.dumps(data)
return response, 200, { 'Content-Type': 'application/json' }
if __name__ == '__main__':
app.run(host='0.0.0.0', port=5002)