File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/main/java/grep/neogul_coder/domain/studyapplication/controller Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1212
1313import java .util .List ;
1414
15- @ RequestMapping ("/api/applications " )
15+ @ RequestMapping ("/api/studies " )
1616@ RequiredArgsConstructor
1717@ RestController
1818public class ApplicationController implements ApplicationSpecification {
1919
2020 private final ApplicationService applicationService ;
2121
22- @ GetMapping
22+ @ GetMapping ( "/{studyId}/applications" )
2323 public ApiResponse <List <MyApplicationResponse >> getMyStudyApplications (@ AuthenticationPrincipal Principal userDetails ) {
2424 return ApiResponse .success (applicationService .getMyStudyApplications (userDetails .getUserId ()));
2525 }
2626
27- @ PostMapping
27+ @ PostMapping ( "/{studyId}/applications" )
2828 public ApiResponse <Long > createApplication (@ RequestBody @ Valid ApplicationCreateRequest request ) {
2929 Long id = applicationService .createApplication (request );
3030 return ApiResponse .success (id );
You can’t perform that action at this time.
0 commit comments