mirror of
https://github.com/wassname/stampy-chat.git
synced 2026-09-23 13:50:27 +08:00
init flask api
This commit is contained in:
@@ -0,0 +1 @@
|
||||
web: gunicorn main:app
|
||||
+13
@@ -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)
|
||||
@@ -0,0 +1,12 @@
|
||||
# ---- <flask stuff> ----
|
||||
|
||||
Flask==1.1.2
|
||||
click==7.1.2
|
||||
gunicorn==20.0.4
|
||||
itsdangerous==1.1.0
|
||||
Jinja2==2.11.3
|
||||
MarkupSafe==1.1.1
|
||||
Werkzeug==1.0.1
|
||||
|
||||
# ---- </flask stuff> ----
|
||||
|
||||
Reference in New Issue
Block a user