diff options
Diffstat (limited to 'server/controllers/chat_room.controller.ts')
-rw-r--r-- | server/controllers/chat_room.controller.ts | 12 |
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(); + } +} |