27 lines
609 B
TypeScript
27 lines
609 B
TypeScript
import { Injectable } from '@nestjs/common';
|
|
import { CreateFoodDto } from './dto/create-food.dto';
|
|
import { UpdateFoodDto } from './dto/update-food.dto';
|
|
|
|
@Injectable()
|
|
export class FoodsService {
|
|
create(createFoodDto: CreateFoodDto) {
|
|
return 'This action adds a new food';
|
|
}
|
|
|
|
findAll() {
|
|
return `This action returns all foods`;
|
|
}
|
|
|
|
findOne(id: number) {
|
|
return `This action returns a #${id} food`;
|
|
}
|
|
|
|
update(id: number, updateFoodDto: UpdateFoodDto) {
|
|
return `This action updates a #${id} food`;
|
|
}
|
|
|
|
remove(id: number) {
|
|
return `This action removes a #${id} food`;
|
|
}
|
|
}
|