Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix : userSpace 인터셉터 적용시키지 않아야 할 url 추가 #112

Merged
merged 1 commit into from
Aug 16, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;
import space.space_spring.argumentResolver.jwtLogin.JwtLoginAuth;
import space.space_spring.argumentResolver.userSpace.CheckUserSpace;
import space.space_spring.argumentResolver.userSpace.UserSpaceAuth;
import space.space_spring.argumentResolver.userSpace.UserSpaceId;
import space.space_spring.dto.pay.dto.PayReceiveInfoDto;
Expand Down Expand Up @@ -91,6 +92,7 @@ public BaseResponse<GetUserInfoBySpaceResponse> getAllUserInfoBySpace(@PathVaria
/**
* 스페이스 가입 view를 위한 데이터 조회
*/
@CheckUserSpace(required = false)
@GetMapping("/{spaceId}/join")
public BaseResponse<GetSpaceJoinDto.Response> getSpaceJoin(@JwtLoginAuth Long userId, @PathVariable Long spaceId) {

Expand Down Expand Up @@ -171,6 +173,7 @@ private String processUserProfileImage(MultipartFile userProfileImg) throws IOEx
/**
* 유저의 스페이스 가입 처리
*/
@CheckUserSpace(required = false)
@PostMapping("/{spaceId}/join")
public BaseResponse<String> joinUserToSpace(@JwtLoginAuth Long userId, @PathVariable Long spaceId, @Validated @ModelAttribute PostSpaceJoinDto.Request request, BindingResult bindingResult) throws IOException {
if (bindingResult.hasErrors()) {
Expand Down
Loading