payverse 적용 #344
@@ -18,7 +18,6 @@ class CanController(private val service: CanService) {
|
|||||||
@GetMapping
|
@GetMapping
|
||||||
fun getCans(request: HttpServletRequest): ApiResponse<List<CanResponse>> {
|
fun getCans(request: HttpServletRequest): ApiResponse<List<CanResponse>> {
|
||||||
val geoCountry = request.getAttribute("geoCountry") as? GeoCountry ?: GeoCountry.OTHER
|
val geoCountry = request.getAttribute("geoCountry") as? GeoCountry ?: GeoCountry.OTHER
|
||||||
println("geoCountry: $geoCountry")
|
|
||||||
return ApiResponse.ok(service.getCans(geoCountry))
|
return ApiResponse.ok(service.getCans(geoCountry))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user