18 lines
538 B
Python
18 lines
538 B
Python
import logging
|
|
from typing import Any, Dict
|
|
|
|
logger = logging.getLogger("mealie-mcp")
|
|
|
|
|
|
class GroupMixin:
|
|
"""Mixin class for group-related API endpoints"""
|
|
|
|
def get_current_group(self) -> Dict[str, Any]:
|
|
"""Get information about the current user's group.
|
|
|
|
Returns:
|
|
Dictionary containing group details such as id, name, slug, and other group information.
|
|
"""
|
|
logger.info({"message": "Retrieving current group information"})
|
|
return self._handle_request("GET", "/api/groups/self")
|