wip
This commit is contained in:
parent
bae554d2d5
commit
4f2d1c322e
11 changed files with 136 additions and 2 deletions
18
people/handler.py
Normal file
18
people/handler.py
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
def detect_person(url):
|
||||
return "Hello, World!"
|
||||
|
||||
|
||||
def handle(req):
|
||||
"""handle a request to the function
|
||||
Args:
|
||||
req (str): request body
|
||||
"""
|
||||
|
||||
if not req:
|
||||
raise Exception("Empty request")
|
||||
|
||||
if isinstance(req, str):
|
||||
req = req.encode("utf-8")
|
||||
url = req
|
||||
|
||||
return detect_person(url)
|
||||
Loading…
Add table
Add a link
Reference in a new issue