forked from Adleraci/adlerka.top
MEME
This commit is contained in:
@@ -8,6 +8,7 @@ function endpoint($endpoint_data): array
|
||||
return match ($endpoint_data["action"]) {
|
||||
"addMeme" => addMeme($endpoint_data['meme_title'], $endpoint_data['meme_text'], $endpoint_data['meme_image_id']),
|
||||
"renderGallery" => renderMemeGallery(),
|
||||
"deleteMeme" => deleteMeme($endpoint_data['meme_id']),
|
||||
default => ["Status" => "Fail", "message" => "Invalid action"],
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user