File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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.
You can’t perform that action at this time.
0 commit comments