diff options
author | metamuffin <metamuffin@disroot.org> | 2023-09-30 09:11:34 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-09-30 09:11:34 +0200 |
commit | c180123e07c31ff45194e1645a4b90c3fd039650 (patch) | |
tree | c3d99afa159a54361504dfc76835086c4197d89d /server/src/routes | |
parent | 7af66484702fa99ed30a6b498fca0066207d4885 (diff) | |
download | jellything-c180123e07c31ff45194e1645a4b90c3fd039650.tar jellything-c180123e07c31ff45194e1645a4b90c3fd039650.tar.bz2 jellything-c180123e07c31ff45194e1645a4b90c3fd039650.tar.zst |
update api
Diffstat (limited to 'server/src/routes')
-rw-r--r-- | server/src/routes/ui/node.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs index 7386f54..1a906f1 100644 --- a/server/src/routes/ui/node.rs +++ b/server/src/routes/ui/node.rs @@ -32,17 +32,17 @@ pub fn r_library_node(id: String) { } #[get("/n/<id>?<filter..>")] -pub async fn r_library_node_filter( +pub async fn r_library_node_filter<'a>( session: Session, - id: String, - db: &State<Database>, + id: &'a str, + db: &'a State<Database>, aj: AcceptJson, filter: NodeFilterSort, -) -> Result<Either<DynLayoutPage<'_>, Json<NodePublic>>, MyError> { +) -> Result<Either<DynLayoutPage<'a>, Json<NodePublic>>, MyError> { drop(session); let node = db .node - .get(&id) + .get(&id.to_string()) .context("retrieving library node")? .ok_or(anyhow!("node does not exist"))? .public; |