import { Body, Controller, Get, Post } from '@nestjs/common'; import { AppService } from './app.service'; @Controller() export class AppController { constructor(private readonly appService: AppService) {} @Get() getHello(): Object { return this.appService.getHello(); } @Post() saveJournalData(@Body() journalData: any) { console.log("JOURNAL DATA", journalData); return { success: "ok" } } }