@@ -5,7 +5,7 @@ public enum MainAPI {
5
5
case fetchAllPostList( authorization: String )
6
6
case fetchGymPostList( authorization: String )
7
7
case fetchPlaygroundPostList( authorization: String )
8
- case fetchDommitoryPostList ( authorization: String )
8
+ case fetchDomitoryPostList ( authorization: String )
9
9
case fetchHomePostList( authorization: String )
10
10
case fetchWalkingTrailPostList( authorization: String )
11
11
}
@@ -17,14 +17,14 @@ extension MainAPI: TargetType {
17
17
18
18
public var path : String {
19
19
switch self {
20
- case . fetchAllPostList, . fetchGymPostList, . fetchDommitoryPostList , . fetchHomePostList, . fetchPlaygroundPostList, . fetchWalkingTrailPostList:
20
+ case . fetchAllPostList, . fetchGymPostList, . fetchDomitoryPostList , . fetchHomePostList, . fetchPlaygroundPostList, . fetchWalkingTrailPostList:
21
21
return " /post "
22
22
}
23
23
}
24
24
25
25
public var method : Moya . Method {
26
26
switch self {
27
- case . fetchAllPostList, . fetchGymPostList, . fetchDommitoryPostList , . fetchHomePostList, . fetchPlaygroundPostList, . fetchWalkingTrailPostList:
27
+ case . fetchAllPostList, . fetchGymPostList, . fetchDomitoryPostList , . fetchHomePostList, . fetchPlaygroundPostList, . fetchWalkingTrailPostList:
28
28
return . get
29
29
}
30
30
}
@@ -41,8 +41,8 @@ extension MainAPI: TargetType {
41
41
return . requestParameters( parameters: [ " location " : " GYM " ] , encoding: URLEncoding . queryString)
42
42
case . fetchPlaygroundPostList( authorization: let authorization) :
43
43
return . requestParameters( parameters: [ " location " : " PLAYGROUND " ] , encoding: URLEncoding . queryString)
44
- case . fetchDommitoryPostList ( authorization: let authorization) :
45
- return . requestParameters( parameters: [ " location " : " DOMITORRY " ] , encoding: URLEncoding . queryString)
44
+ case . fetchDomitoryPostList ( authorization: let authorization) :
45
+ return . requestParameters( parameters: [ " location " : " DOMITORY " ] , encoding: URLEncoding . queryString)
46
46
case . fetchHomePostList( authorization: let authorization) :
47
47
return . requestParameters( parameters: [ " location " : " HOME " ] , encoding: URLEncoding . queryString)
48
48
case . fetchWalkingTrailPostList( authorization: let authorization) :
@@ -52,7 +52,7 @@ extension MainAPI: TargetType {
52
52
53
53
public var headers : [ String : String ] ? {
54
54
switch self {
55
- case . fetchAllPostList( let authorization) , . fetchGymPostList( let authorization) , . fetchPlaygroundPostList( let authorization) , . fetchDommitoryPostList ( let authorization) , . fetchHomePostList( let authorization) , . fetchWalkingTrailPostList( let authorization) :
55
+ case . fetchAllPostList( let authorization) , . fetchGymPostList( let authorization) , . fetchPlaygroundPostList( let authorization) , . fetchDomitoryPostList ( let authorization) , . fetchHomePostList( let authorization) , . fetchWalkingTrailPostList( let authorization) :
56
56
return [ " Authorization " : " Bearer \( authorization) " ]
57
57
}
58
58
}
0 commit comments