From 0364e61074caca9d3ff67dd936aee62292cb08b2 Mon Sep 17 00:00:00 2001 From: Wassaf Ali Date: Thu, 25 Jul 2024 01:55:54 +0530 Subject: [PATCH] Added Head API --- src/routes/io/io.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/routes/io/io.py b/src/routes/io/io.py index bcc7ed3..2053990 100644 --- a/src/routes/io/io.py +++ b/src/routes/io/io.py @@ -7,7 +7,8 @@ File, UploadFile, Form, - Request + Request, + Resonse ) from models.responses import * from foss42.text.slugify import slugify @@ -82,6 +83,10 @@ async def analyze_img_file( user_data = {} +@io_router.head("/head") +async def head_endpoint(): + return Response(headers={"Custom-Header": "Ok"}) + @io_router.post('/user/create') async def create_user(username:str, email:str,