File size: 318 Bytes
392ec31
34a120d
 
392ec31
 
34a120d
 
 
 
 
04748c9
392ec31
 
0ce5073
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
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, {})