Skip to content

Commit b6c6938

Browse files
authored
Merge pull request #94 from Bot-detector/develop
add head response on root path
2 parents 89ad226 + 6290972 commit b6c6938

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/core/server.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,10 @@ def create_app() -> FastAPI:
3939

4040
app = create_app()
4141

42-
42+
@app.head("/")
43+
def root(request: Request):
44+
return {"hello":"world"}
45+
4346
@app.get("/")
4447
def root(request: Request):
4548
return RedirectResponse(request.url_for("home"))

0 commit comments

Comments
 (0)