fix(api tokens): make sure read one routes show up in routes endpoint

This commit is contained in:
kolaente 2023-09-01 12:58:29 +02:00
parent e3c5a93f4f
commit 14c5a8ca5b
Signed by untrusted user: konrad
GPG Key ID: F40E70337AB24C9B
1 changed files with 1 additions and 1 deletions

View File

@ -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,