mirror of
https://github.com/velocitatem/cvfs.git
synced 2026-05-31 16:53:38 +00:00
18 lines
354 B
Python
18 lines
354 B
Python
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)
|