diff --git a/src/controllers/AuthController.ts b/src/controllers/AuthController.ts index d5320a3..435f3ca 100644 --- a/src/controllers/AuthController.ts +++ b/src/controllers/AuthController.ts @@ -5,8 +5,8 @@ import { UserNotFoundError } from '../errors/UserErrors'; import { CreateAuth } from '../models/actions/CreateAuth'; import { HandleLogout } from '../models/actions/HandleLogout'; import { RefreshAuth } from '../models/actions/RefreshAuth'; -import { Auth } from '../models/responses/Auth'; -import { Logout } from '../models/responses/Logout'; +import { Auth } from '../models/responses/ResponseAuth'; +import { Logout } from '../models/responses/ResponseLogout'; @JsonController('/auth') export class AuthController { diff --git a/src/models/actions/CreateAuth.ts b/src/models/actions/CreateAuth.ts index 140f9ef..bf8584c 100644 --- a/src/models/actions/CreateAuth.ts +++ b/src/models/actions/CreateAuth.ts @@ -5,7 +5,7 @@ import { getConnectionManager } from 'typeorm'; import { InvalidCredentialsError, PasswordNeededError, UserNotFoundError } from '../../errors/AuthError'; import { UsernameOrEmailNeededError } from '../../errors/UserErrors'; import { User } from '../entities/User'; -import { Auth } from '../responses/Auth'; +import { Auth } from '../responses/ResponseAuth'; export class CreateAuth { @IsOptional() diff --git a/src/models/actions/HandleLogout.ts b/src/models/actions/HandleLogout.ts index c50edd0..7b68d91 100644 --- a/src/models/actions/HandleLogout.ts +++ b/src/models/actions/HandleLogout.ts @@ -3,7 +3,7 @@ import * as jsonwebtoken from 'jsonwebtoken'; import { getConnectionManager } from 'typeorm'; import { IllegalJWTError, JwtNotProvidedError, RefreshTokenCountInvalidError, UserNotFoundError } from '../../errors/AuthError'; import { User } from '../entities/User'; -import { Logout } from '../responses/Logout'; +import { Logout } from '../responses/ResponseLogout'; export class HandleLogout { @IsString() diff --git a/src/models/actions/RefreshAuth.ts b/src/models/actions/RefreshAuth.ts index 66e27f8..6e61a75 100644 --- a/src/models/actions/RefreshAuth.ts +++ b/src/models/actions/RefreshAuth.ts @@ -3,7 +3,7 @@ import * as jsonwebtoken from 'jsonwebtoken'; import { getConnectionManager } from 'typeorm'; import { IllegalJWTError, JwtNotProvidedError, RefreshTokenCountInvalidError, UserNotFoundError } from '../../errors/AuthError'; import { User } from '../entities/User'; -import { Auth } from '../responses/Auth'; +import { Auth } from '../responses/ResponseAuth'; export class RefreshAuth { @IsString() diff --git a/src/models/responses/Auth.ts b/src/models/responses/ResponseAuth.ts similarity index 100% rename from src/models/responses/Auth.ts rename to src/models/responses/ResponseAuth.ts diff --git a/src/models/responses/Logout.ts b/src/models/responses/ResponseLogout.ts similarity index 100% rename from src/models/responses/Logout.ts rename to src/models/responses/ResponseLogout.ts