refactor(users): content negotiation at GET /users/{username}; move lookup_handler; rename get_me_following

This commit is contained in:
2026-05-14 21:25:49 +02:00
parent abc5f2b936
commit d1f72c8308
2 changed files with 157 additions and 14 deletions

View File

@@ -20,10 +20,7 @@ pub fn router() -> Router<AppState> {
.patch(users::patch_profile)
.put(users::patch_profile),
)
.route(
"/users/me/following-list",
get(users::get_me_following_list),
)
.route("/users/me/following-list", get(users::get_me_following))
.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.