Skip to content

Commit a782308

Browse files
wip
1 parent b7c38c7 commit a782308

1 file changed

Lines changed: 2 additions & 33 deletions

File tree

crates/api/src/lib.rs

Lines changed: 2 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,3 @@
1-
///! Types and implements for the Cap web API endpoints.
1+
//! Types and implements for the Cap web API endpoints.
22
3-
pub struct UploadMultipartInitiate {
4-
video_id: String,
5-
}
6-
7-
// impl UploadMultipartInitiate {
8-
// pub fn as_request(self) -> reqwest::Request {
9-
// let mut request = reqwest::Request::new(
10-
// reqwest::Method::POST,
11-
// "https://api.example.com/upload_multipart_initiate"
12-
// .parse()
13-
// .unwrap(),
14-
// );
15-
// request.header("Authorization", "Bearer YOUR_TOKEN");
16-
// request.json(&self).unwrap();
17-
// request
18-
// }
19-
// }
20-
21-
// #[derive(Default)]
22-
// pub struct Api {
23-
// client: reqwest::Client,
24-
// bearer: Option<String>, // TODO: Hook this up
25-
// }
26-
27-
// impl Api {
28-
// pub fn upload_multipart_initiate(&self) {
29-
// // self.client
30-
// todo!();
31-
// }
32-
// }
33-
34-
// TODO: Helper for retries, exponential backoff
3+
// TODO: Migrate `apps/desktop/src-tauri/upload.rs` here once we figure out how auth will work with that.

0 commit comments

Comments
 (0)