15 lines
343 B
Python
15 lines
343 B
Python
|
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)
|