I try to make a universal method that will do some stuff. But I get a 404 with any route, even if I hardcode {controller} like api/MyAwesomeController/img/{id}. I know I did something wrong, please help me out.
P.S. I've read this and tried. But here I am
app.UseMvc(routes => {
routes.MapRoute("media", "api/{controller}/img/{id}",
defaults: new { controller = "Media", action = "Get" });
});