diff --git a/src/graphql_api/app.rs b/src/graphql_api/app.rs index 57b02d1..91058ab 100644 --- a/src/graphql_api/app.rs +++ b/src/graphql_api/app.rs @@ -31,7 +31,7 @@ async fn graphiql() -> Result { .body(html)) } -#[guard(Public)] +#[guard(Authenticated)] async fn graphql( req: actix_web::HttpRequest, payload: actix_web::web::Payload, diff --git a/src/search/app.rs b/src/search/app.rs index c6c7b63..94276cc 100644 --- a/src/search/app.rs +++ b/src/search/app.rs @@ -18,7 +18,7 @@ struct SearchQuery { a: Option, } -#[guard(Public)] +#[guard(Authenticated)] async fn handle_simple( client: Data, search: Data,