listFiles(), "getAllFiles" => listFiles(false), "uploadFiles" => parseIncomingFiles(), "addToGroup" => addToGroup($endpoint_data['group_id'], $endpoint_data['file_id']), "myFileExists" => fileExists($endpoint_data['file_id'], ), "FileExists" => fileExists($endpoint_data['file_id'], false), default => ["Status" => "Fail", "message" => "Invalid action"], }; }