This commit is contained in:
10
hanyadikhetvan/__init__.py
Normal file
10
hanyadikhetvan/__init__.py
Normal file
@ -0,0 +1,10 @@
|
||||
import logging
|
||||
from datetime import date
|
||||
import azure.functions as func
|
||||
|
||||
|
||||
def main(req: func.HttpRequest) -> func.HttpResponse:
|
||||
startdate = date(2022, 2, 6)
|
||||
return func.HttpResponse(
|
||||
(date.today() - startdate).days / 7,
|
||||
status_code=200)
|
19
hanyadikhetvan/function.json
Normal file
19
hanyadikhetvan/function.json
Normal file
@ -0,0 +1,19 @@
|
||||
{
|
||||
"scriptFile": "__init__.py",
|
||||
"bindings": [
|
||||
{
|
||||
"authLevel": "function",
|
||||
"type": "httpTrigger",
|
||||
"direction": "in",
|
||||
"name": "req",
|
||||
"methods": [
|
||||
"get"
|
||||
]
|
||||
},
|
||||
{
|
||||
"type": "http",
|
||||
"direction": "out",
|
||||
"name": "$return"
|
||||
}
|
||||
]
|
||||
}
|
Reference in New Issue
Block a user