1
0
mirror of https://gitlab.com/2-chainz/2-chainz-rest.git synced 2025-08-03 03:51:24 +00:00

init commit

This commit is contained in:
2020-02-28 19:22:14 -07:00
parent b9981b5771
commit 62b33b8cc4
4 changed files with 41 additions and 0 deletions

1
.gitignore vendored Normal file
View File

@@ -0,0 +1 @@
__pycache__

3
Dockerfile Normal file
View File

@@ -0,0 +1,3 @@
FROM tiangolo/uvicorn-gunicorn-fastapi:python3.7
COPY ./ /app

17
main.py Normal file
View File

@@ -0,0 +1,17 @@
from fastapi import FastAPI
import json
import random
quotes = json.load(open("quotes.json"))
app = FastAPI()
@app.get("/")
async def quote():
return {"message": random.choice(quotes)}
@app.get("/dump")
async def dump():
return quotes

20
quotes.json Normal file
View File

@@ -0,0 +1,20 @@
[
"My side chick got pregnant by her main dude and i'm offended.",
"I kiss your lady, eat her pussy, then kiss the baby.",
"Left hand on that steering wheel, right hand on that pussy!",
"For my birthday I threw me a surprise party!",
"She got a big booty so I call her big booty",
"My girl got a big purse with a purse in it and her pussy so clean, I can go to church in it!",
"Beat the pussy up, I need riot gear.",
"Gas in a Ziplock, now thats loud and clear.",
"My wrist deserve a shout out, 'I'm like what up wrist?' My stove deserve a shout out, 'I'm like what up stove?'",
"I'm in the kitchen. Yams errrrrwhere.",
"I encourage everyone to pay attention to the issues that matter to you, from jobs and the economy, to education and our schools, to criminal justice reform. Whatever it is that you care about, make sure you use your voice.",
"If you a chicken head, go somewhere and lay some eggs",
"Chain hang to my ding-a-ling, chain hang, chain hang to my ding-a-ling",
"I tried to get a tan but I'm black already.",
"Then I put a fat rabbit on a Craftmatic!",
"Yeah, I love them strippers",
"If I wasn't rapping I'd be trapping.",
"Started from the trap, now I rap"
]