UseEndpoints (endpoints => { endpoints.MapControllers(); });. あとは Controller 側で属性を付けてあげます。 [Route("api/[controller]")] [ ...
確定! 回上一頁