Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Alirezamp
/
n8n
like
0
Running
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
a3ae3f1
n8n
/
main.py
Alirezamp
Upload main.py
50d45a1
verified
2 months ago
raw
Copy download link
history
blame
Safe
250 Bytes
from
fastapi
import
FastAPI
app = FastAPI()
# @app.get('/')
# def read_root():
# return {"message": "Hello, World!"}
# redirect to 127.0.0.1
@app.get(
'/'
)
def
redirect_to_localhost
():
return
{
"redirect"
:
"http://127.0.0.1:5678"
}