Skip to content

Commit

Permalink
[feat] Save EndPoint 추가 (#51)
Browse files Browse the repository at this point in the history
  • Loading branch information
BAEKYUJEONG committed Oct 30, 2024
1 parent e572bce commit 48f411b
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,8 +9,10 @@ import Foundation

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

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

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

0 comments on commit 48f411b

Please sign in to comment.