From 14c5a8ca5b4813b05f9b689932c42755126fe067 Mon Sep 17 00:00:00 2001 From: kolaente Date: Fri, 1 Sep 2023 12:58:29 +0200 Subject: [PATCH] fix(api tokens): make sure read one routes show up in routes endpoint --- pkg/models/api_routes.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/models/api_routes.go b/pkg/models/api_routes.go index fba08dcd9..c7655a063 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,