addMeme($endpoint_data['meme_title'], $endpoint_data['meme_text'], $endpoint_data['meme_image_id']), "renderGallery" => renderMemeGallery($endpoint_data['offset'], $endpoint_data['meme_author'], $endpoint_data['meme_id'], $endpoint_data['meme_keyword']), "deleteMeme" => deleteMeme($endpoint_data['meme_id']), "getMemeVotes" => getMemeVotes($endpoint_data['meme_id']), "deleteVoteMeme" => deleteVoteMeme($endpoint_data['meme_id']), "voteMeme" => voteMeme($endpoint_data['meme_id'], $endpoint_data['is_upvote']), default => ["Status" => "Fail", "Message" => "Invalid action"], }; }