aboutsummaryrefslogtreecommitdiff
path: root/src/app.controller.ts
blob: 3e9bccabdee63ed952b6912368cc787d7ba16b62 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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"
    }
  }
}