diff options
author | Felix <me@nutomic.com> | 2020-04-14 17:37:23 +0200 |
---|---|---|
committer | Felix <me@nutomic.com> | 2020-04-14 17:37:23 +0200 |
commit | 19c84613977724c4008aba3d37141c86901f9ca8 (patch) | |
tree | cc530d0c42ba5aab18f4bd50aa494da06b23407a /server/src/routes/federation.rs | |
parent | 13e6c98e47b0a44c2313f086ed2f50b37430f84c (diff) |
Implemented follow/accept
Diffstat (limited to 'server/src/routes/federation.rs')
-rw-r--r-- | server/src/routes/federation.rs | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/server/src/routes/federation.rs b/server/src/routes/federation.rs index 100e548f..2798e7a9 100644 --- a/server/src/routes/federation.rs +++ b/server/src/routes/federation.rs @@ -12,7 +12,14 @@ pub fn config(cfg: &mut web::ServiceConfig) { ) // TODO: this needs to be moved to the actors (eg /federation/u/{}/inbox) .route("/federation/inbox", web::post().to(apub::inbox::inbox)) - .route("/federation/inbox", web::post().to(apub::inbox::inbox)) + .route( + "/federation/c/{_}/inbox", + web::post().to(apub::inbox::inbox), + ) + .route( + "/federation/u/{_}/inbox", + web::post().to(apub::inbox::inbox), + ) .route( "/federation/c/{community_name}", web::get().to(apub::community::get_apub_community_http), |