Automatic push from FunctionsAPI

This commit is contained in:
FunctionsAPI 2025-02-06 03:04:07 +00:00
parent 8a5c63402d
commit 96b8af3a47
3 changed files with 14 additions and 1 deletions

View File

@ -1,2 +1,2 @@
# e784625efa5a4329b5e28539d92d54b3
# ca71efed0c9748878dfcec9a71e94a1e

View File

13
addfunction/main.py Normal file
View File

@ -0,0 +1,13 @@
import logging
# Configure the logging
logging.basicConfig(level=logging.INFO, format='%(asctime)s - %(levelname)s - %(message)s')
def main(request):
logging.info(f"Function called with request: {request}")
data = request.get_json(force=True)
logging.info(f"Received data: {data}")
return {"result": data.get("a", 0)+data.get("b", 0)}