mirror of
https://github.com/meilisearch/meilisearch.git
synced 2025-10-25 13:06:27 +00:00
Change the metrics route API access rights
This commit is contained in:
@@ -282,7 +282,7 @@ pub async fn get_health() -> Result<HttpResponse, ResponseError> {
|
||||
}
|
||||
|
||||
pub async fn get_metrics(
|
||||
meilisearch: GuardedData<ActionPolicy<{ actions::STATS_GET }>, MeiliSearch>,
|
||||
meilisearch: GuardedData<ActionPolicy<{ actions::METRICS_GET }>, MeiliSearch>,
|
||||
) -> Result<HttpResponse, ResponseError> {
|
||||
let search_rules = &meilisearch.filters().search_rules;
|
||||
let response = meilisearch.get_all_stats(search_rules).await?;
|
||||
|
||||
Reference in New Issue
Block a user