-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(api): [#143] remove Warp API implementation
- Loading branch information
1 parent
337e12e
commit 77ec521
Showing
9 changed files
with
47 additions
and
1,150 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1 @@ | ||
pub mod resource; | ||
pub mod routes; | ||
pub mod server; | ||
|
||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Deserialize, Debug)] | ||
pub struct TorrentInfoQuery { | ||
offset: Option<u32>, | ||
limit: Option<u32>, | ||
} | ||
|
||
#[derive(Serialize, Debug)] | ||
#[serde(tag = "status", rename_all = "snake_case")] | ||
enum ActionStatus<'a> { | ||
Ok, | ||
Err { reason: std::borrow::Cow<'a, str> }, | ||
} | ||
|
||
impl warp::reject::Reject for ActionStatus<'static> {} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,4 @@ | ||
pub mod http_tracker; | ||
pub mod torrent_cleanup; | ||
pub mod tracker_api; | ||
pub mod tracker_apis; | ||
pub mod udp_tracker; |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.