Add player stats and server leaderboards to Desktop app and polish UI
This commit is contained in:
1 parent
ebd9de1bee
commit
3043f3ab42
12 files changed
+826
-66
No files matched your search
@@ -21,11 +21,15 @@ pub fn api(state: &AppState) -> Router<AppState> {
|
||||
.route("/auth/register", post(public::register))
|
||||
.route("/auth/me", get(public::me))
|
||||
.route("/account/profile", get(account::profile))
|
||||
.route("/account/stats", get(servers::account_player_stats))
|
||||
.route("/account/username", axum::routing::put(account::set_username))
|
||||
.route("/account/skin", post(account::upload_skin).delete(account::delete_skin))
|
||||
.route("/account/skin/model", axum::routing::put(account::set_model))
|
||||
.route("/account/cape", axum::routing::put(account::set_cape))
|
||||
.route("/avatar/{id}", get(account::avatar))
|
||||
.route("/servers/public", get(servers::public_servers))
|
||||
.route("/servers/{id}/leaderboard", get(servers::public_server_leaderboard))
|
||||
.route("/leaderboard", get(servers::global_leaderboard))
|
||||
.route("/launcher/authlib-injector.json", get(account::authlib_index))
|
||||
.route("/launcher/authlib-injector.jar", get(account::authlib_jar))
|
||||
.layer(DefaultBodyLimit::max(4 * 1024 * 1024));
|
||||
|
||||
Reference in new issue
Block a user