import { PrismaService } from './prisma/prisma.service' ; import { Controller , Get } from '@nestjs/common' ; import { AppService } from './app.service' ; import { Food } from '@prisma/client' ; @ Controller ( ) export class AppController { constructor ( private readonly appService , private readonly prismaService ) { } @ Get ( ) getHello ( ) { return this . appService . getHello ( ) ; } @ Get ( 'foods' ) getFoods ( ) { return this . prismaService . food . findMany ( ) ; } }