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

Commit

Permalink
fix: fix route issues
Browse files Browse the repository at this point in the history
  • Loading branch information
phodal committed Mar 25, 2022
1 parent 2cab6ea commit 521ef20
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,10 @@ class CSharpApiAnalyser {
}

if (route.isNotEmpty() && httpMethod.isNotEmpty()) {
if (!route.startsWith("/")) {
route = "/${route}"
}

resources = resources + ContainerResource(
sourceUrl = route,
sourceHttpMethod = httpMethod,
Expand Down

0 comments on commit 521ef20

Please sign in to comment.