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 408113c commit 52efd55Copy full SHA for 52efd55
src/JsonApiDotNetCore/Extensions/IApplicationBuilderExtensions.cs
@@ -5,11 +5,14 @@ namespace JsonApiDotNetCore.Routing
5
{
6
public static class IApplicationBuilderExtensions
7
8
- public static IApplicationBuilder UseJsonApi(this IApplicationBuilder app)
+ public static IApplicationBuilder UseJsonApi(this IApplicationBuilder app, bool useMvc = true)
9
10
app.UseMiddleware<RequestMiddleware>();
11
12
- app.UseMvc();
+ if (useMvc)
13
+ {
14
+ app.UseMvc();
15
+ }
16
17
return app;
18
}
0 commit comments