mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 16:53:38 +00:00
Initial commit
This commit is contained in:
17
apps/backend/flask/server.py
Normal file
17
apps/backend/flask/server.py
Normal file
@@ -0,0 +1,17 @@
|
||||
from flask import Flask
|
||||
from flask_cors import CORS
|
||||
import os
|
||||
from dotenv import load_dotenv
|
||||
load_dotenv()
|
||||
|
||||
app = Flask(__name__)
|
||||
CORS(app, origins="*")
|
||||
|
||||
@app.route('/health')
|
||||
def health():
|
||||
return {'status': 'healthy'}, 200
|
||||
|
||||
|
||||
if __name__ == '__main__':
|
||||
PORT=int(os.getenv("BACKEND_PORT", 5000))
|
||||
app.run(host='0.0.0.0', port=PORT, debug=True)
|
||||
Reference in New Issue
Block a user