We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4f93f2b commit 328e478Copy full SHA for 328e478
csharp/ql/test/library-tests/dataflow/flowsources/aspremote/AspRemoteFlowSource.cs
@@ -1,3 +1,4 @@
1
+using Microsoft.AspNetCore.Builder;
2
using Microsoft.AspNetCore.Mvc;
3
4
namespace Testing
@@ -20,4 +21,19 @@ public object MyAction(ViewModel viewModel)
20
21
throw null;
22
}
23
24
+
25
+ public class AspRoutingEndpoints
26
+ {
27
28
+ public void M1(string[] args)
29
30
+ var builder = WebApplication.CreateBuilder(args);
31
+ var app = builder.Build();
32
33
+ // The delegate parameters are considered flow sources.
34
+ app.MapGet("/api/redirect/{newUrl}", (string newUrl) => { });
35
36
+ app.Run();
37
+ }
38
39
0 commit comments