(collectionId: string, id: string)
| 9 | } |
| 10 | |
| 11 | export const getCardById = async (collectionId: string, id: string): Promise<Card | null> => { |
| 12 | return repo().getById(collectionId, id) |
| 13 | } |
| 14 | |
| 15 | export const createCard = async (collectionId: string, data: CardCreate): Promise<Card> => { |
| 16 | return repo().create(collectionId, data) |