Skip to content

Commit

Permalink
clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
wisdomfreak-1 committed May 19, 2024
1 parent c9d8886 commit eab2975
Show file tree
Hide file tree
Showing 8 changed files with 7 additions and 61 deletions.
9 changes: 1 addition & 8 deletions routes/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,7 @@
from config.db import db, Assets_collection, Findings_collection
router = APIRouter(prefix="/assets", tags=["assets"])

# client = MongoClient("mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.1")


# #mongodb details
# db = client["mantis"]
# Assets_collection = db["assets_collection"]
# Findings_collection = db["findings_collection"]


@router.get("/technologies_q", status_code=200)
async def technologies_q(current_user: Annotated[User, Security(get_current_user, scopes=["admin", "read","write"])], org: str = Query(None, description="Organization name")):
match_stage = {}
Expand Down
8 changes: 1 addition & 7 deletions routes/certificates.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@
router = APIRouter(prefix="/certificates", tags=["certificates"])


# client = MongoClient("mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.1")


# #mongodb details
# db = client["mantis"]
# Assets_collection = db["assets_collection"]
# Findings_collection = db["findings_collection"]


#table
@router.get("/search", status_code=status.HTTP_200_OK)
Expand Down
10 changes: 0 additions & 10 deletions routes/informational_vulnerabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,6 @@

router = APIRouter(prefix="/infovulnerabilities", tags=["INFO Vul"])

# client = MongoClient("mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.1")



# #mongodb details
# db = client["mantis"]
# Assets_collection = db["assets_collection"]
# Findings_collection = db["findings_collection"]



#vulnerabilities_severity api route
@router.get("/severity", status_code=status.HTTP_201_CREATED)
Expand Down
8 changes: 1 addition & 7 deletions routes/network_information.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,7 @@
router = APIRouter(prefix="/network_information", tags=["network_information"])

#mongo connect client
# client = MongoClient("mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.1")


# #mongodb details
# db = client["mantis"]
# Assets_collection = db["assets_collection"]
# Findings_collection = db["findings_collection"]



#table route
Expand Down
8 changes: 1 addition & 7 deletions routes/org.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,7 @@

router = APIRouter(prefix="/org", tags=["org details"])

# client = MongoClient("mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.1")


# #mongodb details
# db = client["mantis"]
# Assets_collection = db["assets_collection"]
# Findings_collection = db["findings_collection"]


@router.get("/organizations", status_code=status.HTTP_200_OK)
async def get_organizations():
Expand Down
8 changes: 1 addition & 7 deletions routes/phishing_domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@

router = APIRouter(prefix="/phishing_domain", tags=["phishing_domain"])

# client = MongoClient("mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.1")


# #mongodb details
# db = client["mantis"]
# Assets_collection = db["assets_collection"]
# Findings_collection = db["findings_collection"]


#table
@router.get("/search", status_code=status.HTTP_200_OK)
Expand Down
8 changes: 1 addition & 7 deletions routes/secrets.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,7 @@

router = APIRouter(prefix="/secrets", tags=["secrets"])

# client = MongoClient("mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.1")


# #mongodb details
# db = client["mantis"]
# Assets_collection = db["assets_collection"]
# Findings_collection = db["findings_collection"]


@router.get("/total_count", status_code=status.HTTP_200_OK)
async def total_count(current_user: Annotated[User, Security(get_current_user, scopes=["admin", "read","write"])], org: str = Query(None, description="Organization name")):
Expand Down
9 changes: 1 addition & 8 deletions routes/vulnerabilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,7 @@

router = APIRouter(prefix="/vulnerabilities", tags=["vulnerabilities"])

# client = MongoClient("mongodb://127.0.0.1:27017/?directConnection=true&serverSelectionTimeoutMS=2000&appName=mongosh+2.2.1")



# #mongodb details
# db = client["mantis"]
# Assets_collection = db["assets_collection"]
# Findings_collection = db["findings_collection"]




Expand Down

0 comments on commit eab2975

Please sign in to comment.