Skip to content

Commit 6e5a412

Browse files
committed
C#: Make one more ASP.NET routing example.
1 parent bd6d3c7 commit 6e5a412

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

csharp/ql/test/library-tests/dataflow/flowsources/aspremote/AspRemoteFlowSource.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ public object MyAction(ViewModel viewModel)
2424

2525
public class AspRoutingEndpoints
2626
{
27-
2827
public void M1(string[] args)
2928
{
3029
var builder = WebApplication.CreateBuilder(args);
3130
var app = builder.Build();
3231

3332
// The delegate parameters are considered flow sources.
3433
app.MapGet("/api/redirect/{newUrl}", (string newUrl) => { });
34+
app.MapGet("/{myApi}/redirect/{myUrl}", (string myApi, string myUrl) => { } );
3535

3636
app.Run();
3737
}

csharp/ql/test/library-tests/dataflow/flowsources/aspremote/aspRemoteFlowSource.expected

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,6 @@ remoteFlowSourceMembers
22
| AspRemoteFlowSource.cs:9:23:9:31 | RequestId |
33
remoteFlowSources
44
| AspRemoteFlowSource.cs:19:42:19:50 | viewModel |
5-
| AspRemoteFlowSource.cs:34:58:34:63 | newUrl |
5+
| AspRemoteFlowSource.cs:33:58:33:63 | newUrl |
6+
| AspRemoteFlowSource.cs:34:61:34:65 | myApi |
7+
| AspRemoteFlowSource.cs:34:75:34:79 | myUrl |

0 commit comments

Comments
 (0)