forked from alemi/upub
fix: oh my god if it was this ...
This commit is contained in:
parent
80d324ae03
commit
5f66ca4946
1 changed files with 4 additions and 4 deletions
|
@ -1,13 +1,13 @@
|
|||
use apb::{ActorMut, BaseMut, ObjectMut, PublicKeyMut};
|
||||
use axum::{extract::State, http::StatusCode, Json};
|
||||
use axum::{extract::State, http::StatusCode};
|
||||
|
||||
use crate::{server::Context, url};
|
||||
|
||||
use super::jsonld::LD;
|
||||
use super::{jsonld::LD, JsonLD};
|
||||
|
||||
|
||||
pub async fn view(State(ctx): State<Context>) -> Result<Json<serde_json::Value>, StatusCode> {
|
||||
Ok(Json(
|
||||
pub async fn view(State(ctx): State<Context>) -> Result<JsonLD<serde_json::Value>, StatusCode> {
|
||||
Ok(JsonLD(
|
||||
serde_json::Value::new_object()
|
||||
.set_id(Some(&url!(ctx, "")))
|
||||
.set_actor_type(Some(apb::ActorType::Application))
|
||||
|
|
Loading…
Reference in a new issue