Skip to content

Commit 3de5c2f

Browse files
committed
Add a comment about GutenbergNetworkRequest.path
1 parent 5407c04 commit 3de5c2f

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

WordPress/Classes/ViewRelated/Gutenberg/GutenbergNetworking.swift

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ import WordPressKit
44
struct GutenbergNetworkRequest {
55
typealias CompletionHandler = (Swift.Result<Any, NSError>) -> Void
66

7+
// Please note: even though this variable is named 'path', the actually values (passed from React Native) contain
8+
// path and query.
9+
//
10+
// For example, when uploading an image to a post in a self-hosted site, this struct is instantiated with a path
11+
// `/wp/v2/media/<id>?context=edit&_locale=user`.
712
private let path: String
813
private unowned let blog: Blog
914
private let method: HTTPMethod

0 commit comments

Comments
 (0)