diff --git a/crates/presentation/src/routes.rs b/crates/presentation/src/routes.rs index 4772256..bdd2745 100644 --- a/crates/presentation/src/routes.rs +++ b/crates/presentation/src/routes.rs @@ -25,6 +25,9 @@ pub fn router() -> Router { get(users::get_me_following_list), ) .route("/users/me/top-friends", put(social::put_top_friends)) + // /users/{username} is owned by the AP router (returns AP actor JSON for federation). + // The REST user profile lives at /users/{username}/profile to avoid the conflict. + .route("/users/{username}/profile", get(users::get_user)) .route( "/users/{username}/top-friends", get(social::get_top_friends_handler),