Commit 124b82be authored by Diego Iván's avatar Diego Iván
Browse files

agregando endpoint que regresa todos los estados

parent 5a6d68bf
Loading
Loading
Loading
Loading
+13 −0
Original line number Diff line number Diff line
import { Controller, Get } from '@nestjs/common';
import { StateService } from './state.service';

@Controller('state')
@Controller('town')
export class StateController {
  constructor(private readonly stateService: StateService) {}

  @Get()
  findAll() {
    return this.stateService.findAll();
  }
}