2020-12-11 18:50:54 +13:00
|
|
|
<?php
|
|
|
|
|
2021-09-06 12:37:20 +12:00
|
|
|
return function ($request, $response) {
|
2021-11-15 15:18:53 +13:00
|
|
|
return $response->json([
|
2021-09-06 12:37:20 +12:00
|
|
|
'APPWRITE_FUNCTION_ID' => $request->env['APPWRITE_FUNCTION_ID'],
|
|
|
|
'APPWRITE_FUNCTION_NAME' => $request->env['APPWRITE_FUNCTION_NAME'],
|
2022-01-25 13:36:33 +13:00
|
|
|
'APPWRITE_FUNCTION_DEPLOYMENT' => $request->env['APPWRITE_FUNCTION_DEPLOYMENT'],
|
2021-09-06 12:37:20 +12:00
|
|
|
'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 15:18:53 +13:00
|
|
|
'UNICODE_TEST' => "êä" // TODO: Re-add unicode test to FunctionsCustomServerTest.php
|
2021-09-06 12:37:20 +12:00
|
|
|
]);
|
2021-12-11 02:48:04 +13:00
|
|
|
};
|