-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat : 버전 체크 api * feat : 버전 체크 api security filter 제외 적용
- Loading branch information
1 parent
a3b4974
commit 118c9fe
Showing
4 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
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
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
21 changes: 21 additions & 0 deletions
21
adapters/in-web/src/main/kotlin/com/pokit/version/VersionController.kt
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,21 @@ | ||
package com.pokit.version | ||
|
||
import com.pokit.version.dto.VersionCheckResponse | ||
import io.swagger.v3.oas.annotations.Operation | ||
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.RestController | ||
|
||
@RestController | ||
@RequestMapping("/api/v1/version") | ||
class VersionController { | ||
|
||
companion object { | ||
private const val RECENT_VERSION = "1.0.1" | ||
} | ||
|
||
@GetMapping | ||
@Operation(summary = "최신 버전 체크 api") | ||
fun checkVersion() = ResponseEntity.ok(VersionCheckResponse(RECENT_VERSION)) | ||
} |
5 changes: 5 additions & 0 deletions
5
adapters/in-web/src/main/kotlin/com/pokit/version/dto/VersionCheckResponse.kt
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,5 @@ | ||
package com.pokit.version.dto | ||
|
||
data class VersionCheckResponse( | ||
val recentVersion: String | ||
) |