Skip to content

Commit 50889c5

Browse files
committed
[BOOK-40] feat: Implement URLBuilder
1 parent f4c6e7f commit 50889c5

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// Copyright © 2025 Booket. All rights reserved
2+
3+
import Foundation
4+
5+
public protocol URLBuilding {
6+
func makeURL(target: RequestTarget) throws -> URL?
7+
}
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
// Copyright © 2025 Booket. All rights reserved
2+
3+
import BKData
4+
import Foundation
5+
6+
public struct URLBuilder: URLBuilding {
7+
public func makeURL(target: RequestTarget) throws -> URL? {
8+
return try target.makeURLRequest().url
9+
}
10+
}

0 commit comments

Comments
 (0)