python_flask / app.py
bbqdennisEX's picture
-- Added call_get_api and call_post_api to Common
0ce5073
raw
history blame
318 Bytes
import Common
from fastapi import FastAPI
DEFALUT_N8N_HEARTBEAT_URL = "https://bbqdennisex-n8n-free.hf.space/webhook/heartbeat"
app = FastAPI()
@app.get("/")
def greet_json():
return {"Hello": "World!"}
@app.get("/heartbeat")
def heartbeat_json():
return Common.call_get_api(DEFALUT_N8N_HEARTBEAT_URL, {})