summaryrefslogtreecommitdiff
path: root/server/controllers
diff options
context:
space:
mode:
authorLogan Hunt <loganhunt@simponic.xyz>2022-03-29 20:17:08 -0600
committerLogan Hunt <loganhunt@simponic.xyz>2022-03-29 20:17:08 -0600
commit042e3b9862b253fb3c3e59ee628dd9e30edf7e35 (patch)
treec05008b3c9c3af133ff6ac7618b88f86dfd71038 /server/controllers
parent5e2996c0fdeee2eaa88a72f79d2e0d600edeb5a6 (diff)
downloadlocchat-042e3b9862b253fb3c3e59ee628dd9e30edf7e35.tar.gz
locchat-042e3b9862b253fb3c3e59ee628dd9e30edf7e35.zip
Chatrooms created
Diffstat (limited to 'server/controllers')
-rw-r--r--server/controllers/chat_room.controller.ts12
1 files changed, 12 insertions, 0 deletions
diff --git a/server/controllers/chat_room.controller.ts b/server/controllers/chat_room.controller.ts
new file mode 100644
index 0000000..5a8da66
--- /dev/null
+++ b/server/controllers/chat_room.controller.ts
@@ -0,0 +1,12 @@
+import { Controller, Get } from '@nestjs/common';
+import { ChatRoomService } from 'server/providers/services/chat_room.service';
+
+@Controller()
+export class ChatRoomController {
+ constructor(private chatRoomService: ChatRoomService) {}
+
+ @Get('/chat_rooms')
+ async get() {
+ return await this.chatRoomService.all();
+ }
+}