Skip to content

Commit 5bf421f

Browse files
committed
reapply fix from #3700 to make sure virtual paths as root are supported again
1 parent fe48451 commit 5bf421f

File tree

3 files changed

+248
-248
lines changed

3 files changed

+248
-248
lines changed

src/CodeGeneration/ApiGenerator/Views/Requests/Requests.cshtml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
public partial class @Raw(names.RequestName) @Raw(string.Format(": PlainRequestBase<{0}>, {1}", names.ParametersName, names.InterfaceName))
1313
{
1414
protected @(Raw(names.InterfaceName)) Self => this;
15-
internal static ApiUrls Urls = new ApiUrls(new [] {@Raw(string.Join(", ", r.Paths.Select(p=>$"\"{p.Path}\"")))});
15+
internal static ApiUrls Urls = new ApiUrls(new [] {@Raw(string.Join(", ", r.Paths.Select(p=>$"\"{p.Path.TrimStart('/')}\"")))});
1616
internal override ApiUrls ApiUrls => Urls;
1717
@foreach (Constructor c in r.Constructors)
1818
{

0 commit comments

Comments
 (0)