1
0

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

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,