some more bs

This commit is contained in:
2026-04-21 11:50:04 +01:00
parent 74a01bd9e6
commit 6c60013295
11 changed files with 177 additions and 58 deletions

View File

@@ -12,6 +12,7 @@ impl query::QueryFn<QueryContext> for List {
"repo.list"
}
async fn run(&self, c: &QueryContext) -> Result<Self::Data, Self::Error> {
async fn run(&self, _c: &QueryContext) -> Result<Self::Data, Self::Error> {
Ok(())
}
}

18
src/api/user.rs Normal file
View File

@@ -0,0 +1,18 @@
use crate::{api, query};
#[derive(Clone)]
pub struct Fetch;
impl query::QueryFn<api::QueryContext> for Fetch {
type Data = api::Error;
type Error = api::Error;
fn key(&self) -> &'static str {
"user"
}
async fn run(&self, c: &api::QueryContext) -> Result<Self::Data, Self::Error> {
Err(api::Error::Unauthenticated)
}
}