2020-12-11 05:50:54 +00:00
|
|
|
<?php
|
|
|
|
|
|
2021-09-06 00:37:20 +00:00
|
|
|
return function ($request, $response) {
|
2021-11-15 02:18:53 +00:00
|
|
|
return $response->json([
|
2022-02-19 11:08:55 +00:00
|
|
|
'APPWRITE_FUNCTION_ID' => $request['env']['APPWRITE_FUNCTION_ID'],
|
|
|
|
|
'APPWRITE_FUNCTION_NAME' => $request['env']['APPWRITE_FUNCTION_NAME'],
|
|
|
|
|
'APPWRITE_FUNCTION_DEPLOYMENT' => $request['env']['APPWRITE_FUNCTION_DEPLOYMENT'],
|
|
|
|
|
'APPWRITE_FUNCTION_TRIGGER' => $request['env']['APPWRITE_FUNCTION_TRIGGER'],
|
|
|
|
|
'APPWRITE_FUNCTION_RUNTIME_NAME' => $request['env']['APPWRITE_FUNCTION_RUNTIME_NAME'],
|
|
|
|
|
'APPWRITE_FUNCTION_RUNTIME_VERSION' => $request['env']['APPWRITE_FUNCTION_RUNTIME_VERSION'],
|
|
|
|
|
'APPWRITE_FUNCTION_EVENT' => $request['env']['APPWRITE_FUNCTION_EVENT'],
|
|
|
|
|
'APPWRITE_FUNCTION_EVENT_DATA' => $request['env']['APPWRITE_FUNCTION_EVENT_DATA'],
|
2021-11-15 02:18:53 +00:00
|
|
|
'UNICODE_TEST' => "êä" // TODO: Re-add unicode test to FunctionsCustomServerTest.php
|
2021-09-06 00:37:20 +00:00
|
|
|
]);
|
2021-12-10 13:48:04 +00:00
|
|
|
};
|