refactor(cdn): CDN URL 변환 함수를 공통화한다
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
package kr.co.vividnext.sodalive.v2.common.domain
|
||||
|
||||
fun String?.toCdnUrl(cloudFrontHost: String): String? {
|
||||
if (isNullOrBlank()) return null
|
||||
if (startsWith("https://") || startsWith("http://")) return this
|
||||
return "$cloudFrontHost/$this"
|
||||
}
|
||||
Reference in New Issue
Block a user