Refactor import statements and clean up code

Standardized import quotes in groups controller and reorganized import statements for better readability. Removed unnecessary line breaks in newGroup method.
This commit is contained in:
Mathis H (Avnyr) 2024-10-07 12:00:54 +02:00
parent ef5349063d
commit 7e8d6e73eb
Signed by: Mathis
GPG Key ID: DD9E0666A747D126

View File

@ -7,11 +7,11 @@ import {
Param, Param,
ParseIntPipe, ParseIntPipe,
Post, Post,
Query Query,
} from '@nestjs/common'; } from "@nestjs/common";
import { CreateGroupDto } from "apps/backend/src/app/groups/groups.dto";
import { ISearchQuery } from "apps/backend/src/app/groups/groups.types"; import { ISearchQuery } from "apps/backend/src/app/groups/groups.types";
import { GroupsService } from "./groups.service"; import { GroupsService } from "./groups.service";
import { CreateGroupDto } from 'apps/backend/src/app/groups/groups.dto';
@Controller("groups") @Controller("groups")
export class GroupsController { export class GroupsController {
@ -29,9 +29,7 @@ export class GroupsController {
//POST a new group //POST a new group
@Post("new") @Post("new")
async newGroup(@Body() dto : CreateGroupDto) { async newGroup(@Body() dto: CreateGroupDto) {}
}
//DELETE a group //DELETE a group
@Delete(":groupId") @Delete(":groupId")