Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
funnysunny08 committed Nov 16, 2024
2 parents 0c5a545 + ee157c2 commit 4980d7f
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/main/java/com/lovemarker/PingController.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
package com.lovemarker;

import com.lovemarker.global.constant.SuccessCode;
import com.lovemarker.global.dto.ApiResponseDto;
import lombok.RequiredArgsConstructor;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/ping")
@RequiredArgsConstructor
public class PingController {
@GetMapping
public ApiResponseDto<String> ping() {
return ApiResponseDto.success(SuccessCode.PING_SUCCESS, "pong");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ public enum SuccessCode {
FIND_MY_MEMORY_LIST_SUCCESS(HttpStatus.OK, "내가 올린 추억 조회에 성공했습니다."),
FIND_MEMORY_MAP_VIEW_SUCCESS(HttpStatus.OK, "추억 지도뷰 조회에 성공했습니다."),
DISCONNECT_COUPLE_SUCCESS(HttpStatus.OK, "커플 연결 해제에 성공했습니다."),
PING_SUCCESS(HttpStatus.OK, "pong"),

// 201
CREATE_INVITATION_CODE_SUCCESS(HttpStatus.CREATED, "초대 코드 생성을 성공했습니다."),
Expand Down

0 comments on commit 4980d7f

Please sign in to comment.