-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMemberController.java
30 lines (25 loc) · 1.16 KB
/
MemberController.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
package team05.integrated_feed_backend.module.member.controller;
import static org.springframework.http.HttpStatus.*;
import static team05.integrated_feed_backend.common.code.StatusCode.*;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import jakarta.validation.Valid;
import lombok.RequiredArgsConstructor;
import team05.integrated_feed_backend.common.BaseApiResponse;
import team05.integrated_feed_backend.module.member.dto.request.MemberSignupReq;
import team05.integrated_feed_backend.module.member.service.MemberService;
@RestController
@RequestMapping("/api/members")
@RequiredArgsConstructor
public class MemberController implements MemberControllerDocs {
private final MemberService memberService;
@PostMapping
@ResponseStatus(ACCEPTED)
public BaseApiResponse<Void> signUp(@RequestBody @Valid MemberSignupReq request) {
memberService.signUp(request);
return BaseApiResponse.of(SIGN_UP_ACCEPTED);
}
}