In this repo i provide the code hosted on api.cybercube21.de. This will be replaced by a backend written in Nuxt soon.
An API in Python i wrote as backend for my meme website. It uses Flask to provide the Endpoints which are easily expandable.
Clone the repo and install the dependencies via the requerements.txt.
git clone https://github.com/Cybercube21/Python-meme-API
cd Python-meme-API/
pip3 install -r requirements.txtTo start, make sure you create a folder called "memes". Right now pictures has to be .webp's and videos .webm's.
Then you can just execute the api.py to start the API.
python3 ./api.pyYou can change the Port its running on at the bottom of the api.py. The default port is 6969
GET /ping
| Type | Description |
|---|---|
json |
Returns a response :o |
GET /memes
| Type | Description |
|---|---|
json |
Get a random URL for a meme stored on my Server |
Example Response:
{"url": "https://api.cybercube21.de/memes/61-unknown.webp"}Join my Discord Server or DM me: Cybercube#0499