feat(character-detail): 상세 화면 도입 및 네비게이션/API 연동
This commit is contained in:
@@ -10,6 +10,7 @@ import Moya
|
||||
|
||||
enum CharacterApi {
|
||||
case getCharacterHome
|
||||
case getCharacterDetail(characterId: Int)
|
||||
}
|
||||
|
||||
extension CharacterApi: TargetType {
|
||||
@@ -19,6 +20,9 @@ extension CharacterApi: TargetType {
|
||||
switch self {
|
||||
case .getCharacterHome:
|
||||
return "/api/chat/character/main"
|
||||
|
||||
case .getCharacterDetail(let characterId):
|
||||
return "/api/chat/character/\(characterId)"
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user