From feb17f4aff6f55c3b0678898cbe47c12d77cdaca Mon Sep 17 00:00:00 2001 From: Arn Date: Wed, 4 Oct 2023 22:28:37 +0700 Subject: [PATCH] chore(route): delete get env route --- routes/route.py | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/routes/route.py b/routes/route.py index 848595d..0cab18c 100644 --- a/routes/route.py +++ b/routes/route.py @@ -1,10 +1,8 @@ -from fastapi import APIRouter, Depends +from fastapi import APIRouter from models.wordlists import Wordlist from config.database import collection_name -from config.config import Settings, get_settings from schema.schemas import list_serial from bson import ObjectId -from typing import Annotated router = APIRouter() @@ -31,10 +29,3 @@ async def put_wordlist(id: str, wordlist: Wordlist): @router.delete("/{id}") async def delete_wordlist(id: str): collection_name.find_one_and_delete({"_id": ObjectId(id)}) - - -@router.get('/info') -async def info(settings: Annotated[Settings, Depends(get_settings)]): - return { - "mongo_uri": settings.mongo_uri - }