aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgabriel giovanini de souza <desouza@oculavis.de>2021-12-08 20:38:41 +0100
committergabriel giovanini de souza <desouza@oculavis.de>2021-12-08 20:38:41 +0100
commit5d86d6c8a55258708aa0a9596b9e0c7132e58e45 (patch)
tree5102c14b03b1c19ae67415dd58586e5b64ce6437
parent2e9afc9e92c12b0fe026ec4aa286b812f3c2186c (diff)
downloadjnfilter-5d86d6c8a55258708aa0a9596b9e0c7132e58e45.tar.gz
jnfilter-5d86d6c8a55258708aa0a9596b9e0c7132e58e45.tar.bz2
jnfilter-5d86d6c8a55258708aa0a9596b9e0c7132e58e45.zip
Adiciona support para HEAD metodo
-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)