15 lines
300 B
Python
15 lines
300 B
Python
from flask import Flask, jsonify
|
|
|
|
app = Flask(__name__)
|
|
|
|
@app.route('/')
|
|
def index():
|
|
return "Hello, World! Test :3"
|
|
|
|
@app.route('/test')
|
|
def test():
|
|
return jsonify({"message": "This is a test endpoint!"}), 200
|
|
|
|
if __name__ == '__main__':
|
|
app.run(debug=True, host='127.0.0.1', port=5050)
|