Skip to content

Commit

Permalink
[NDD-172]: 로그인 완료 시 마이페이지로 리다이렉트 되도록 구현 (1h / 1h) (#58)
Browse files Browse the repository at this point in the history
* style: createVideoRequest 파일 이름 변수명 변경

* feat: 로그인 완료 시 마이페이지로 리다이렉트 되도록 FE 요구 사항 반영
  • Loading branch information
quiet-honey authored Nov 16, 2023
1 parent 8211225 commit 98dd5c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion BE/src/auth/controller/auth.controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export class AuthController {
await this.authService.login(userRequest),
COOKIE_OPTIONS,
)
.send();
.redirect('https://www.gomterview.com/mypage');
}

@Delete('logout')
Expand Down Expand Up @@ -102,4 +102,5 @@ export class AuthController {
const COOKIE_OPTIONS: CookieOptions = {
httpOnly: true,
path: '/',
sameSite: 'lax',
};
2 changes: 1 addition & 1 deletion BE/src/video/dto/createVideoRequest.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export class CreateVideoRequest {
@ApiProperty(createPropertyOption('example.mp4', '비디오 파일 이름', String))
@IsString()
@IsNotEmpty()
name: string;
videoName: string;

@ApiProperty(
createPropertyOption('https://example.com', '비디오 URL', String),
Expand Down
2 changes: 1 addition & 1 deletion BE/src/video/entity/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class Video extends DefaultEntity {
return new Video(
member.id,
createVidoeRequest.questionId,
createVidoeRequest.name,
createVidoeRequest.videoName,
createVidoeRequest.url,
false,
);
Expand Down

0 comments on commit 98dd5c8

Please sign in to comment.