17 lines
1.1 KiB
Swift
17 lines
1.1 KiB
Swift
|
func main(req: RequestValue, res: RequestResponse) throws -> RequestResponse {
|
||
|
return res.json(data: [
|
||
|
"APPWRITE_FUNCTION_ID": req.env["APPWRITE_FUNCTION_ID"],
|
||
|
"APPWRITE_FUNCTION_NAME": req.env["APPWRITE_FUNCTION_NAME"],
|
||
|
"APPWRITE_FUNCTION_DEPLOYMENT": req.env["APPWRITE_FUNCTION_DEPLOYMENT"],
|
||
|
"APPWRITE_FUNCTION_TRIGGER": req.env["APPWRITE_FUNCTION_TRIGGER"],
|
||
|
"APPWRITE_FUNCTION_RUNTIME_NAME": req.env["APPWRITE_FUNCTION_RUNTIME_NAME"],
|
||
|
"APPWRITE_FUNCTION_RUNTIME_VERSION": req.env["APPWRITE_FUNCTION_RUNTIME_VERSION"],
|
||
|
"APPWRITE_FUNCTION_EVENT": req.env["APPWRITE_FUNCTION_EVENT"],
|
||
|
"APPWRITE_FUNCTION_EVENT_DATA": req.env["APPWRITE_FUNCTION_EVENT_DATA"],
|
||
|
"APPWRITE_FUNCTION_DATA": req.env["APPWRITE_FUNCTION_DATA"],
|
||
|
"APPWRITE_FUNCTION_USER_ID": req.env["APPWRITE_FUNCTION_USER_ID"],
|
||
|
"APPWRITE_FUNCTION_JWT": req.env["APPWRITE_FUNCTION_JWT"],
|
||
|
"APPWRITE_FUNCTION_PROJECT_ID": req.env["APPWRITE_FUNCTION_PROJECT_ID"],
|
||
|
"CUSTOM_VARIABLE": req.env["CUSTOM_VARIABLE"]
|
||
|
])
|
||
|
}
|