Skip to content

Commit

Permalink
[WEAV-100] Secret BaseURL 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jisu15-kim committed Oct 8, 2024
1 parent ffbacdc commit ddee33c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,5 @@ graph.dot
Derived/

### Tuist managed dependencies ###
Tuist/.build
Tuist/.build
Projects/Core/CoreKit/Sources/Secret.swift
5 changes: 3 additions & 2 deletions Projects/Core/NetworkKit/Sources/NetworkCore/ServerType.swift
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
//

import Foundation
import CoreKit

public enum ServerType: String {
case dev // db 개발, api 개발
Expand All @@ -15,9 +16,9 @@ public enum ServerType: String {
var baseURL: String {
switch self {
case .dev:
return "https://randomuser.me/"
return Secret.devBaseUrl
case .prod:
return "prodURL"
return Secret.prodBaseUrl
}
}

Expand Down

0 comments on commit ddee33c

Please sign in to comment.