forked from alemi/upub
fix: register outbox route
This commit is contained in:
parent
f588df751f
commit
b464aa0e98
2 changed files with 2 additions and 1 deletions
|
@ -70,8 +70,8 @@ pub async fn page(
|
|||
pub async fn post(
|
||||
State(ctx): State<Context>,
|
||||
Path(id): Path<String>,
|
||||
Json(activity): Json<serde_json::Value>,
|
||||
AuthIdentity(auth): AuthIdentity,
|
||||
Json(activity): Json<serde_json::Value>,
|
||||
) -> Result<impl IntoResponse, StatusCode> {
|
||||
match auth {
|
||||
Identity::Anonymous => Err(StatusCode::UNAUTHORIZED),
|
||||
|
|
|
@ -24,6 +24,7 @@ pub async fn serve(db: DatabaseConnection, domain: String) {
|
|||
.route("/users/:id/inbox", get(ap::user::inbox::get))
|
||||
.route("/users/:id/inbox", post(ap::user::inbox::post))
|
||||
.route("/users/:id/outbox", get(ap::user::outbox::get))
|
||||
.route("/users/:id/outbox", post(ap::user::outbox::post))
|
||||
.route("/users/:id/outbox/page", get(ap::user::outbox::page))
|
||||
.route("/users/:id/followers", get(ap::user::follow___::<false>))
|
||||
.route("/users/:id/following", get(ap::user::follow___::<true>))
|
||||
|
|
Loading…
Reference in a new issue