first commit
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from app import create_app
|
||||
import os
|
||||
|
||||
app = create_app(os.environ.get("FLASK_ENV", "development"))
|
||||
|
||||
|
||||
@app.route("/")
|
||||
def index():
|
||||
return {"message": "SentClaw API", "version": "0.1.0", "status": "running"}
|
||||
|
||||
|
||||
@app.route("/health")
|
||||
def health():
|
||||
return {"status": "healthy"}
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
app.run(
|
||||
host=app.config["Flask_HOST"],
|
||||
port=app.config["Flask_PORT"],
|
||||
debug=app.config["Flask_DEBUG"],
|
||||
)
|
||||
Reference in New Issue
Block a user