Carter seems to ignore UsePathBase
See original GitHub issueapp.UseRouting();
app.UsePathBase("/api");
app.UseEndpoints(builder => builder.MapCarter());
When using Carter with a base path, it seems to ignore it. Do I have to go define this as a base module?
Issue Analytics
- State:
- Created 3 years ago
- Comments:7 (3 by maintainers)
Top Results From Across the Web
Blazor Server Path Issues
There's several ways I have found for setting the path of the app. app.UsePathBase("/myapp") app.UseStaticFiles("/myapp"). Setting these seem ...
Read more >Understanding PathBase in ASP.NET Core
In this post I'll describe a lesser-known property on HttpRequest called `PathBase`. I describe what it does, when it's useful, ...
Read more >ASP.NET Community Standup - A first look at Carter on .NET 6
Carter is framework that is a thin layer of extension methods and functionality over ASP.NET Core allowing code to be more explicit and...
Read more >The open source Carter Community Project adds ...
Carter is ASP.NET. You can add Carter to your existing ASP.NET Core app by just " dotnet add package carter " and adding...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
It’s not Carter, it’s a thing with minimal routing:
https://github.com/dotnet/aspnetcore/issues/38448
Adding the call to
UseRouting
fixed for me:Correct.
Didn’t know if that middleware. Could add some code to check if it’s set but a base module will work for now
On Mon, 25 May 2020 at 06:38, Phillip Haydon notifications@github.com wrote: