add python cloud function

This commit is contained in:
Pritimay Sarkar
2023-08-21 16:02:06 +05:30
parent 3b61e4aef8
commit 960f5b9d9c
5 changed files with 91 additions and 0 deletions

View File

View File

@@ -0,0 +1,17 @@
# Deploy with `firebase deploy`
from firebase_functions import https_fn
from firebase_admin import initialize_app
# initialize_app()
#
#
# @https_fn.on_request()
# def on_request_example(req: https_fn.Request) -> https_fn.Response:
# return https_fn.Response("Hello world!")
initialize_app()
@https_fn.on_request()
def on_request_example(req: https_fn.Request) -> https_fn.Response:
return https_fn.Response("Hello world!")

View File

@@ -0,0 +1 @@
firebase_functions~=0.1.0