import type { Topic } from '@bogam/models'; import { TopicRepository } from '@/lib/database'; export class TopicService { private topicRepository: TopicRepository; constructor() { this.topicRepository = new TopicRepository(); } async getTopic(slug: string): Promise { const topicRow = await this.topicRepository.findBySlug(slug); return topicRow; } }