-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Read Reddit API ratelimit headers and log info. Remove dead code * Update api/test/subreddit-info to return parsed data * Add user info debug endpoint * Add subreddit posts debug endpoint * Add user posts debug endpoint
- Loading branch information
Showing
7 changed files
with
94 additions
and
46 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,17 +1,18 @@ | ||
use std::collections::HashMap; | ||
|
||
use axum::{routing::get, Router}; | ||
|
||
use crate::AppState; | ||
use axum::{routing::get, Router}; | ||
use std::collections::HashMap; | ||
|
||
pub mod test; | ||
|
||
type PlainParams = HashMap<String, String>; | ||
type AnyParams = HashMap<String, String>; | ||
|
||
pub fn router() -> Router<AppState> { | ||
Router::<AppState>::new() | ||
.route("/test/timeout", get(test::timeout)) | ||
.route("/test/lorem", get(test::lorem)) | ||
.route("/test/subreddit-info", get(test::subreddit_info)) | ||
.route("/test/subreddit-comments", get(test::subreddit_comments)) | ||
.route("/test/post-comments", get(test::post_comments)) | ||
.route("/test/user-info", get(test::user_info)) | ||
.route("/test/subreddit-posts", get(test::subreddit_posts)) | ||
.route("/test/user-posts", get(test::user_posts)) | ||
} |
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
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
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