from fastapi import APIRouter from app.domain.entities.activity_item import ActivityItem from app.infrastructure.rss_service import RSSService router = APIRouter() @router.get( "/{username}", response_model=list[ActivityItem], summary="Get the user's RSS activity", description="Returns an array with the date and number of activities in the last 30 days" ) def get_user_rss(username: str): rss_service = RSSService() return rss_service.get_rss_by_username(username)