refactor(routes): clean RESTful route table; content negotiation at /users/{username}
This commit is contained in:
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user