Spaces:
Sleeping
Sleeping
| from app import app | |
| if __name__ == "__main__": | |
| app.run() | |
| # wsgi.py | |
| # from flask import Flask, jsonify, request | |
| # from flask_cors import CORS | |
| # app = Flask(__name__) | |
| # CORS(app) | |
| # @app.get("/health") | |
| # def health(): | |
| # return "ok", 200 | |
| # @app.get("/") | |
| # def index(): | |
| # routes = sorted(str(r) for r in app.url_map.iter_rules()) | |
| # return jsonify( | |
| # status="ok", | |
| # message="SAFIM execution engine is running", | |
| # routes=routes, | |
| # examples={ | |
| # "health": "GET /health", | |
| # "runtimes": "GET /runtimes # если у вас есть этот эндпоинт", | |
| # "execute_code": { | |
| # "method": "POST", | |
| # "path": "/execute_code # или ваш реальный путь", | |
| # "json": {"language": "python", "code": "print(1)"}, | |
| # }, | |
| # }, | |
| # ), 200 | |