aboutsummaryrefslogtreecommitdiff
path: root/src/app.controller.ts
diff options
context:
space:
mode:
authorIndrajith K L2023-08-09 03:17:29 +0530
committerIndrajith K L2023-08-09 03:17:29 +0530
commitda7af92dcbbae9444ce9daf3fd278212d9cea4c7 (patch)
tree0c25dbd2c84e16d0f44844e94f70711e7770cb86 /src/app.controller.ts
downloadJournlr Backend-master.tar.gz
Journlr Backend-master.tar.bz2
Journlr Backend-master.zip
initial commit with sample post urlHEADmaster
Diffstat (limited to 'src/app.controller.ts')
-rw-r--r--src/app.controller.ts20
1 files changed, 20 insertions, 0 deletions
diff --git a/src/app.controller.ts b/src/app.controller.ts
new file mode 100644
index 0000000..3e9bcca
--- /dev/null
+++ b/src/app.controller.ts
@@ -0,0 +1,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"
+ }
+ }
+}