diff --git a/pkg/models/api_routes.go b/pkg/models/api_routes.go index fba08dcd9ad..c7655a06382 100644 --- a/pkg/models/api_routes.go +++ b/pkg/models/api_routes.go @@ -89,7 +89,7 @@ func CollectRoutesForAPITokenUsage(route echo.Route) { Method: route.Method, } } - if strings.Contains(route.Name, "ReadWeb") { + if strings.Contains(route.Name, "ReadOneWeb") { apiTokenRoutes[routeGroupName].ReadOne = &RouteDetail{ Path: route.Path, Method: route.Method,