diff --git a/endpoints/endpoint.get.py b/endpoints/endpoint.get.py index bc7ab58..c4feae6 100644 --- a/endpoints/endpoint.get.py +++ b/endpoints/endpoint.get.py @@ -1,20 +1,11 @@ from fastapi import APIRouter, status from typing import Dict +import random router = APIRouter() @router.get("/endpoint", status_code=status.HTTP_200_OK, response_model=Dict[str, str]) -async def get_dave_translations(): - translations = { - "english": "Dave", - "spanish": "David", - "french": "David", - "german": "David", - "italian": "Davide", - "portuguese": "Davi", - "russian": "Давид", - "japanese": "デイビッド", - "chinese": "戴夫", - "korean": "데이비드" - } - return translations \ No newline at end of file +async def get_random_color(): + """Generate a random color""" + color = '#{:06x}'.format(random.randint(0, 0xFFFFFF)) + return {"color": color} \ No newline at end of file