feature/scel-base #1
@ -14,10 +14,6 @@ pub struct QueryRoot;
|
|||||||
|
|
||||||
#[Object]
|
#[Object]
|
||||||
impl QueryRoot {
|
impl QueryRoot {
|
||||||
async fn hello_world(&self) -> &str {
|
|
||||||
"Hello, world!"
|
|
||||||
}
|
|
||||||
|
|
||||||
async fn get_download(&self, ctx: &Context<'_>, id: ID) -> Result<Option<Download>> {
|
async fn get_download(&self, ctx: &Context<'_>, id: ID) -> Result<Option<Download>> {
|
||||||
let app = ctx.data_unchecked::<Arc<App>>();
|
let app = ctx.data_unchecked::<Arc<App>>();
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user