Skip to content

Commit

Permalink
Devolver lista de actividades en GET. Closes #87
Browse files Browse the repository at this point in the history
  • Loading branch information
Carlota de la Vega committed Dec 29, 2023
1 parent 158e69e commit 48e0a02
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/controlador.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
import { Controller, Get, Post, Put, Delete, Param } from '@nestjs/common';
import { LoggerConfig } from './logger';
import { Actividad } from './actividad';

@Controller('tareas')
export class Controlador {
@Get()
obtenerTodasLasTareas(): string {
obtenerTodasLasTareas(): Actividad[] {
const tareas: Actividad[] = [];
// Lógica para obtener todas las tareas

LoggerConfig.logger.debug('Obteniendo todas las tareas programadas');
return 'Lista de todas las tareas programadas';
return tareas;
}

@Post()
Expand Down

0 comments on commit 48e0a02

Please sign in to comment.