refactor(routes): clean RESTful route table; content negotiation at /users/{username}

This commit is contained in:
2026-05-14 21:31:02 +02:00
parent fbc02bc2f8
commit e64404cf40
2 changed files with 24 additions and 34 deletions

View File

@@ -2,7 +2,6 @@ mod config;
mod factory;
use activitypub_base::{
actor_handler::actor_handler,
followers_handler::{followers_handler, following_handler},
inbox::inbox_handler,
nodeinfo::{nodeinfo_handler, nodeinfo_well_known_handler},
@@ -50,7 +49,6 @@ async fn main() {
axum::routing::get(nodeinfo_well_known_handler),
)
.route("/nodeinfo/2.0", axum::routing::get(nodeinfo_handler))
.route("/users/{username}", axum::routing::get(actor_handler))
.route(
"/users/{username}/inbox",
axum::routing::post(inbox_handler),