Skip to content

Commit

Permalink
Add OAuth2Token, OAuth2TokenRevocation, and `OAuth2AuthorizationC…
Browse files Browse the repository at this point in the history
…urrent` to `Route`
  • Loading branch information
valentinegb committed Aug 8, 2024
1 parent 640fa8a commit 4db091a
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/http/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2944,7 +2944,7 @@ impl Http {
multipart: None,
headers: None,
method: LightMethod::Get,
route: Route::Oauth2ApplicationCurrent,
route: Route::OAuth2ApplicationCurrent,
params: None,
})
.await
Expand Down
14 changes: 13 additions & 1 deletion src/http/routing.rs
Original file line number Diff line number Diff line change
Expand Up @@ -361,10 +361,22 @@ routes! ('a, {
api!("/invites/{}", code),
Some(RatelimitingKind::Path);

Oauth2ApplicationCurrent,
OAuth2Token,
api!("/oauth2/token"),
None;

OAuth2TokenRevocation,
api!("/oauth2/token/revoke"),
None;

OAuth2ApplicationCurrent,
api!("/oauth2/applications/@me"),
None;

OAuth2AuthorizationCurrent,
api!("/oauth2/@me"),
None;

StatusIncidentsUnresolved,
status!("/incidents/unresolved.json"),
None;
Expand Down

0 comments on commit 4db091a

Please sign in to comment.