init flask api

This commit is contained in:
Fraser
2023-03-30 07:10:13 -04:00
parent aed097a77d
commit bb5af6e40f
4 changed files with 27 additions and 3 deletions
+13
View File
@@ -0,0 +1,13 @@
from flask import Flask, jsonify
import os
app = Flask(__name__)
@app.route('/')
def index():
return jsonify({"general kenobi": "hello there"})
if __name__ == '__main__':
app.run(debug=True, port=5000)