""" Category Controller - Business logic for handling category data. This module contains functions that interact with the database to fetch and process data sorted by category """ from database.mongodb import category_collection def get_categories(): """ Returns all categories and their corresponding sites """ categories = list(category_collection.find({}, {"_id": 0, "category": 1, "site": 1})) return categories