from flask import g from auth.auth_view import AuthorizedView from services.project_history.history_service import HistoryService class RecentActivityView(AuthorizedView): service = HistoryService() def get(self): return self.service.get_recent_history(g.user_id)