ShabazKnowde commited on
Commit
e7beaed
·
verified ·
1 Parent(s): 7897d41

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -27,6 +27,10 @@ def fetch_profile(prompt: str):
27
  c = api.get_profile(prompt)
28
  return c
29
 
 
 
 
 
30
  @app.get("/", tags=["Home"])
31
  def api_home():
32
  return {'detail': 'Welcome to FastAPI LinkedIn Crawler by Knowde!'}
 
27
  c = api.get_profile(prompt)
28
  return c
29
 
30
+ @app.head("/")
31
+ async def head_root():
32
+ return {"message": "This is a HEAD request to the root URL."}
33
+
34
  @app.get("/", tags=["Home"])
35
  def api_home():
36
  return {'detail': 'Welcome to FastAPI LinkedIn Crawler by Knowde!'}