Skip to content

Commit

Permalink
Merge pull request #94 from Bot-detector/develop
Browse files Browse the repository at this point in the history
add head response on root path
  • Loading branch information
extreme4all authored Oct 8, 2024
2 parents 89ad226 + 6290972 commit b6c6938
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/core/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def create_app() -> FastAPI:

app = create_app()


@app.head("/")
def root(request: Request):
return {"hello":"world"}

@app.get("/")
def root(request: Request):
return RedirectResponse(request.url_for("home"))

0 comments on commit b6c6938

Please sign in to comment.