init
This commit is contained in:
15
costly-api/src/groups/api/groups.controller.ts
Normal file
15
costly-api/src/groups/api/groups.controller.ts
Normal file
@@ -0,0 +1,15 @@
|
||||
import { Body, Controller, Post } from "@nestjs/common";
|
||||
import { CreateGroupDto } from "../dto/create-group.dto";
|
||||
import { GroupsService } from "../application/groups.service";
|
||||
|
||||
@Controller({path: 'groups'})
|
||||
export class GroupsController {
|
||||
|
||||
constructor(private groupsService: GroupsService) {}
|
||||
|
||||
@Post()
|
||||
createGroup(@Body() dto: CreateGroupDto) {
|
||||
return this.groupsService.create(dto);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user