Skip to content

Commit

Permalink
[Fix] #252 - 네트워크 상수 사용
Browse files Browse the repository at this point in the history
  • Loading branch information
yungu0010 committed May 13, 2024
1 parent 46b4083 commit d79f132
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions iOS-NOTTODO/iOS-NOTTODO/Network/Service/BaseAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -60,10 +60,9 @@ public enum HeaderType {
public var value: [String: String] {
switch self {
case .json:
return ["Content-Type": "application/json"]
return NetworkConstant.noTokenHeader
case .jsonWithToken:
return ["Content-Type": "application/json",
"Authorization": "\(KeychainUtil.getAccessToken())"]
return NetworkConstant.hasTokenHeader
}
}
}

0 comments on commit d79f132

Please sign in to comment.