Skip to content

Commit

Permalink
feat : ClientAppVersionController 업데이트 필수 여부 확인 API 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
wonslee committed Jan 24, 2024
1 parent 0a7bb0c commit 884cf89
Showing 1 changed file with 27 additions and 0 deletions.
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));
}
}

0 comments on commit 884cf89

Please sign in to comment.