fix: oh my god if it was this ...

This commit is contained in:
əlemi 2024-04-13 04:31:36 +02:00
parent 80d324ae03
commit 5f66ca4946
Signed by: alemi
GPG key ID: A4895B84D311642C

View file

@ -1,13 +1,13 @@
use apb::{ActorMut, BaseMut, ObjectMut, PublicKeyMut}; 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 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> { pub async fn view(State(ctx): State<Context>) -> Result<JsonLD<serde_json::Value>, StatusCode> {
Ok(Json( Ok(JsonLD(
serde_json::Value::new_object() serde_json::Value::new_object()
.set_id(Some(&url!(ctx, ""))) .set_id(Some(&url!(ctx, "")))
.set_actor_type(Some(apb::ActorType::Application)) .set_actor_type(Some(apb::ActorType::Application))