I’m looking for a way to have multiple routes in my ASP.NET Core which differ by a certain header. I found this question which answers the same question BUT for Controllers API: Header based routing in ASP.NET Core
I’m looking for the same thing, but for minimal APIs. I found this (https://learn.microsoft.com/en-us/aspnet/core/fundamentals/routing?view=aspnetcore-8.0#route-constraints) describing custom route constraints, but I don’t really care about any parameters (my path actually doesn’t have any) so I don’t know how to use it.