diff --git a/src/modules/auth/auth.controller.ts b/src/modules/auth/auth.controller.ts index 6c1ce3f..93ed826 100644 --- a/src/modules/auth/auth.controller.ts +++ b/src/modules/auth/auth.controller.ts @@ -12,10 +12,10 @@ import { ApiBearerAuth, ApiBody, ApiOkResponse } from "@nestjs/swagger"; import { URLSearchParams } from "node:url"; -import { ResfreshDTO } from "./Dto/refresh.dto"; +import { ResfreshDTO } from "./dto/refresh.dto"; -import { DiscordAuthGuard } from "./Guards/discord.guard"; -import { RefreshJwtAuthGuard } from "./Guards/refresh.guard"; +import { DiscordAuthGuard } from "./guards/discord.guard"; +import { RefreshJwtAuthGuard } from "./guards/refresh.guard"; import { AuthService } from "./auth.service"; @Controller("auth") diff --git a/src/modules/auth/auth.module.ts b/src/modules/auth/auth.module.ts index d0692da..568b49a 100644 --- a/src/modules/auth/auth.module.ts +++ b/src/modules/auth/auth.module.ts @@ -3,9 +3,10 @@ import { AuthController } from "./auth.controller"; import { AuthService } from "./auth.service"; import { UserModule } from "@Modules/user/user.module"; -import { DiscordStrategy } from "./Strategy/discord.strategy"; -import { JWTStrategy } from "./Strategy/jwt.strategy"; -import { RefreshJWTStrategy } from "./Strategy/refresh.strategy"; + +import { DiscordStrategy } from "./strategy/discord.strategy"; +import { JWTStrategy } from "./strategy/jwt.strategy"; +import { RefreshJWTStrategy } from "./strategy/refresh.strategy"; @Module({ imports: [UserModule], diff --git a/src/modules/auth/Decorators/roles.decorator.ts b/src/modules/auth/decorators/roles.decorator.ts similarity index 100% rename from src/modules/auth/Decorators/roles.decorator.ts rename to src/modules/auth/decorators/roles.decorator.ts diff --git a/src/modules/auth/Dto/refresh.dto.ts b/src/modules/auth/dto/refresh.dto.ts similarity index 100% rename from src/modules/auth/Dto/refresh.dto.ts rename to src/modules/auth/dto/refresh.dto.ts diff --git a/src/modules/auth/Guards/discord.guard.ts b/src/modules/auth/guards/discord.guard.ts similarity index 100% rename from src/modules/auth/Guards/discord.guard.ts rename to src/modules/auth/guards/discord.guard.ts diff --git a/src/modules/auth/Guards/jwt.guard.ts b/src/modules/auth/guards/jwt.guard.ts similarity index 100% rename from src/modules/auth/Guards/jwt.guard.ts rename to src/modules/auth/guards/jwt.guard.ts diff --git a/src/modules/auth/Guards/refresh.guard.ts b/src/modules/auth/guards/refresh.guard.ts similarity index 100% rename from src/modules/auth/Guards/refresh.guard.ts rename to src/modules/auth/guards/refresh.guard.ts diff --git a/src/modules/auth/Guards/role.guard.ts b/src/modules/auth/guards/role.guard.ts similarity index 100% rename from src/modules/auth/Guards/role.guard.ts rename to src/modules/auth/guards/role.guard.ts diff --git a/src/modules/auth/Strategy/discord.strategy.ts b/src/modules/auth/strategy/discord.strategy.ts similarity index 100% rename from src/modules/auth/Strategy/discord.strategy.ts rename to src/modules/auth/strategy/discord.strategy.ts diff --git a/src/modules/auth/Strategy/jwt.strategy.ts b/src/modules/auth/strategy/jwt.strategy.ts similarity index 100% rename from src/modules/auth/Strategy/jwt.strategy.ts rename to src/modules/auth/strategy/jwt.strategy.ts diff --git a/src/modules/auth/Strategy/refresh.strategy.ts b/src/modules/auth/strategy/refresh.strategy.ts similarity index 100% rename from src/modules/auth/Strategy/refresh.strategy.ts rename to src/modules/auth/strategy/refresh.strategy.ts diff --git a/src/modules/user/Dto/bulk-delete-user.dto.ts b/src/modules/user/dto/bulk-delete-user.dto.ts similarity index 100% rename from src/modules/user/Dto/bulk-delete-user.dto.ts rename to src/modules/user/dto/bulk-delete-user.dto.ts diff --git a/src/modules/user/Dto/create-user.dto.ts b/src/modules/user/dto/create-user.dto.ts similarity index 100% rename from src/modules/user/Dto/create-user.dto.ts rename to src/modules/user/dto/create-user.dto.ts diff --git a/src/modules/user/Dto/update-user.dto.ts b/src/modules/user/dto/update-user.dto.ts similarity index 100% rename from src/modules/user/Dto/update-user.dto.ts rename to src/modules/user/dto/update-user.dto.ts diff --git a/src/modules/user/user.controller.ts b/src/modules/user/user.controller.ts index 774ccb6..21e4f50 100644 --- a/src/modules/user/user.controller.ts +++ b/src/modules/user/user.controller.ts @@ -15,12 +15,12 @@ import { ApiUnauthorizedResponse, } from "@nestjs/swagger"; -import { Role } from "@Modules/auth/Decorators/roles.decorator"; -import { JwtAuthGuard } from "@Modules/auth/Guards/jwt.guard"; -import { RolesGuard } from "@Modules/auth/Guards/role.guard"; +import { Role } from "@/modules/auth/decorators/roles.decorator"; +import { JwtAuthGuard } from "@/modules/auth/guards/jwt.guard"; +import { RolesGuard } from "@/modules/auth/guards/role.guard"; -import { BulkDeleteUserDTO } from "./Dto/bulk-delete-user.dto"; -import { CreateUserDTO } from "./Dto/create-user.dto"; +import { BulkDeleteUserDTO } from "./dto/bulk-delete-user.dto"; +import { CreateUserDTO } from "./dto/create-user.dto"; import { UserEntity } from "./user.entity"; import { UserService } from "./user.service"; diff --git a/src/modules/user/user.service.ts b/src/modules/user/user.service.ts index 0673d1f..f50cb95 100644 --- a/src/modules/user/user.service.ts +++ b/src/modules/user/user.service.ts @@ -1,8 +1,8 @@ import { Injectable, NotFoundException } from "@nestjs/common"; import { PrismaService } from "@Modules/prisma/prisma.service"; -import { CreateUserDTO } from "./Dto/create-user.dto"; -import { UpdateUserDTO } from "./Dto/update-user.dto"; +import { CreateUserDTO } from "./dto/create-user.dto"; +import { UpdateUserDTO } from "./dto/update-user.dto"; import { Prisma } from "@prisma/client"; @Injectable()