Skip to content

Commit

Permalink
chore(route): delete get env route
Browse files Browse the repository at this point in the history
  • Loading branch information
arn355 committed Oct 4, 2023
1 parent 2818399 commit feb17f4
Showing 1 changed file with 1 addition and 10 deletions.
11 changes: 1 addition & 10 deletions routes/route.py
Original file line number Diff line number Diff line change
@@ -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()

Expand All @@ -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
}

0 comments on commit feb17f4

Please sign in to comment.