modeling out expense entities and dtos
This commit is contained in:
parent
acdb7ad9c9
commit
7011e44662
10 changed files with 83 additions and 14 deletions
|
|
@ -1,7 +1,6 @@
|
|||
import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
|
||||
import { ExpensesService } from '../../services/expenses.service';
|
||||
import { CreateExpenseDto } from './create-expense.dto';
|
||||
import { UpdateExpenseDto } from './update-expense.dto';
|
||||
import { CreateExpenseDto, GetExpenseDto, UpdateExpenseDto } from './expense.dto';
|
||||
|
||||
@Controller('expenses')
|
||||
export class ExpensesController {
|
||||
|
|
@ -13,7 +12,7 @@ export class ExpensesController {
|
|||
}
|
||||
|
||||
@Get()
|
||||
findAll() {
|
||||
findAll(): GetExpenseDto[] {
|
||||
return this.expensesService.findAll();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue