aboutsummaryrefslogtreecommitdiff
path: root/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'main.py')
-rw-r--r--main.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/main.py b/main.py
index f86611f..50d4138 100644
--- a/main.py
+++ b/main.py
@@ -70,7 +70,7 @@ async def load_titles() -> Iterator[str]:
xml_str = response.content
return filter_titles_xml(xml_str)
-
+@app.head("/")
@app.get("/", response_class=XMLResponse)
async def root(q: str = ''):
return await load_and_filter(q)