Cleanup: Renamed Responses to represent their response nature

ref #11 #13 #14
This commit is contained in:
Nicolai Ort 2020-12-05 18:49:13 +01:00
parent 0e924449d6
commit 61e7ae4f86
6 changed files with 5 additions and 5 deletions

View File

@ -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 {

View File

@ -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()

View File

@ -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()

View File

@ -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()