client-magic-back/src/contacts/contacts.service.ts
2025-01-17 19:44:36 +05:00

12 lines
277 B
TypeScript

import { Injectable } from '@nestjs/common';
import { PrismaService } from 'src/prisma/prisma.service';
@Injectable()
export class ContactsService {
constructor(private readonly prisma: PrismaService) {}
async getAll() {
return this.prisma.contacts.findMany();
}
}