Skip to content

Commit

Permalink
Added sample function
Browse files Browse the repository at this point in the history
  • Loading branch information
qtsathish committed Apr 25, 2021
1 parent de232cb commit a34dd72
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
Binary file not shown.
9 changes: 9 additions & 0 deletions April21/Functions/HttpFunctions/main.py
@@ -0,0 +1,9 @@

def hello_http(request):
request_json = request.get_json()
request_args = request.args
if request_json and 'name' in request_json:
name = request_json['name']
else:
name = 'world'
return 'Hello {}!'.format(name)
1 change: 1 addition & 0 deletions April21/Functions/HttpFunctions/requirements.txt
@@ -0,0 +1 @@
flask

0 comments on commit a34dd72

Please sign in to comment.