btw. in .net core you can either use attributes or builders to create your routes or even more stuff. at least since (i think) 3.0.
and if that is not a great fit you can actually build your own routing by creating a middleware (btw. the endpoint routing stuff is just a middleware)