-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat : ClientAppVersionController 업데이트 필수 여부 확인 API 추가
- Loading branch information
Showing
1 changed file
with
27 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
src/main/java/usw/suwiki/domain/version/controller/ClientAppVersionController.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
package usw.suwiki.domain.version.controller; | ||
|
||
import lombok.RequiredArgsConstructor; | ||
import lombok.extern.slf4j.Slf4j; | ||
import org.springframework.http.ResponseEntity; | ||
import org.springframework.web.bind.annotation.GetMapping; | ||
import org.springframework.web.bind.annotation.RequestMapping; | ||
import org.springframework.web.bind.annotation.RequestParam; | ||
import org.springframework.web.bind.annotation.RestController; | ||
import usw.suwiki.domain.version.dto.response.CheckUpdateMandatoryResponse; | ||
import usw.suwiki.domain.version.service.ClientAppVersionService; | ||
|
||
@Slf4j | ||
@RestController | ||
@RequestMapping("/client/version") | ||
@RequiredArgsConstructor | ||
public class ClientAppVersionController { | ||
private final ClientAppVersionService clientAppVersionService; | ||
|
||
@GetMapping("/update-mandatory") | ||
public ResponseEntity<CheckUpdateMandatoryResponse> checkIsUpdateMandatory( | ||
@RequestParam String os, | ||
@RequestParam Integer versionCode | ||
) { | ||
return ResponseEntity.ok(clientAppVersionService.checkIsUpdateMandatory(os, versionCode)); | ||
} | ||
} |