Skip to content
This repository has been archived by the owner on May 25, 2022. It is now read-only.

Commit

Permalink
fix: fix some controller not annotation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 24, 2022
1 parent 0acd089 commit 548f155
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class CSharpApiAnalyser {

fun analysisByNode(node: CodeDataStruct, workspace: String) {
val routeAnnotation = node.filterAnnotations("RoutePrefix", "Route")
if (routeAnnotation.isNotEmpty()) {
if (routeAnnotation.isNotEmpty() || node.NodeName.endsWith("Controller")) {
val baseUrl = routeAnnotation[0].KeyValues[0].Value
node.Functions.forEach { createResource(it, baseUrl, node) }
}
Expand Down

0 comments on commit 548f155

Please sign in to comment.