feat: logging toegevoegd
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
from __future__ import annotations
|
||||
|
||||
from backend.app.api.schemas import HistoryListResponse
|
||||
from backend.app.db.history_repository import HistoryRepository
|
||||
|
||||
|
||||
class HistoryService:
|
||||
def __init__(self, repository: HistoryRepository):
|
||||
self._repository = repository
|
||||
|
||||
def list_history(self) -> HistoryListResponse:
|
||||
return HistoryListResponse(items=self._repository.list_history(limit=100))
|
||||
Reference in New Issue
Block a user