Skip to content

Commit 685c29c

Browse files
committed
feat(endpoints): add file name to web API endpoint output #308
Include the containing file name in the web API endpoint output for better traceability.
1 parent eafcf83 commit 685c29c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

exts/ext-endpoints/src/233/main/kotlin/cc/unitmesh/endpoints/bridge/WebApiViewFunctionProvider.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ class WebApiViewFunctionProvider : ToolchainFunctionProvider {
6464

6565
"""Here is current project web api endpoints, ${map.size}:""" + map.joinToString("\n") { url ->
6666
url.method.joinToString("\n") {
67-
"$it - ${url.urlPath.toStringWithStars()}"
67+
"$it - ${url.urlPath.toStringWithStars()}" + " (${UrlMappingElement.getContainingFileName(url)})"
6868
}
6969
}
7070
}

0 commit comments

Comments
 (0)