some more bs
This commit is contained in:
@@ -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
18
src/api/user.rs
Normal 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)
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user