Skip to content

Commit

Permalink
Attempting to switch search and the api from Public to Authenticated
Browse files Browse the repository at this point in the history
Signed-off-by: Rob Tucker <[email protected]>
  • Loading branch information
Rob Tucker committed May 18, 2021
1 parent de47ac1 commit 9a3971f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/graphql_api/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ async fn graphiql() -> Result<HttpResponse, ApiError> {
.body(html))
}

#[guard(Public)]
#[guard(Authenticated)]
async fn graphql<T: AsyncCisClientTrait + Send + Sync>(
req: actix_web::HttpRequest,
payload: actix_web::web::Payload,
Expand Down
2 changes: 1 addition & 1 deletion src/search/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ struct SearchQuery {
a: Option<String>,
}

#[guard(Public)]
#[guard(Authenticated)]
async fn handle_simple(
client: Data<Client>,
search: Data<Search>,
Expand Down

0 comments on commit 9a3971f

Please sign in to comment.