Skip to content

Commit

Permalink
[feat] FeedDetail에 필요한 EndPoint 추가 (#51)
Browse files Browse the repository at this point in the history
Feed
  • Loading branch information
BAEKYUJEONG committed Oct 13, 2024
1 parent c10e267 commit e37cc0a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions PLUV/Network/EndPoint.swift
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,8 @@ import Foundation

enum EndPoint {
case feed
case feedId(String)
case feedIdMusic(String)

case loginApple
case loginAppleAdd
Expand Down Expand Up @@ -43,6 +45,10 @@ extension EndPoint {
switch self {
case .feed:
return EndPoint.makeEndPoint("/feed")
case .feedId(let id):
return EndPoint.makeEndPoint("/feed/\(id)")
case .feedIdMusic(let id):
return EndPoint.makeEndPoint("/feed/\(id)/music")

case .loginApple:
return EndPoint.makeEndPoint("/login/apple")
Expand Down

0 comments on commit e37cc0a

Please sign in to comment.