ID:FCLD-228;DONE:7;HOURS:7; system file gen test in builder
This commit is contained in:
commit
e03fc99c40
|
|
@ -0,0 +1,13 @@
|
|||
app = "python-buildpack-func-sample"
|
||||
region = "asia-south1"
|
||||
handler = "handler.handler"
|
||||
|
||||
[build]
|
||||
buildpack_builder = "paketobuildpacks/builder-jammy-base"
|
||||
buildpacks = ["paketo-buildpacks/python"]
|
||||
ignorefile = ".gitignore"
|
||||
[build.args]
|
||||
foo = "bar"
|
||||
|
||||
[env]
|
||||
FOO = "BAR"
|
||||
|
|
@ -0,0 +1,16 @@
|
|||
# Import the required modules
|
||||
from flask import jsonify
|
||||
|
||||
# Define the handler function
|
||||
def handler(request):
|
||||
# Extract data from the request if needed
|
||||
# For example, if the request contains JSON data:
|
||||
# data = request.json
|
||||
|
||||
# Create the response JSON
|
||||
response_json = {
|
||||
'message': 'Hello World'
|
||||
}
|
||||
|
||||
# Return a JSON response
|
||||
return jsonify(response_json)
|
||||
Loading…
Reference in New Issue
Block a user