From dce63614639b7efb4d5652040aa927a9b0920a10 Mon Sep 17 00:00:00 2001 From: Liang Yi Date: Mon, 23 Sep 2019 23:17:36 +0800 Subject: [PATCH] update api controller base. --- Controllers/SampleDataController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Controllers/SampleDataController.cs b/Controllers/SampleDataController.cs index 13f8c76..3a5a0b8 100644 --- a/Controllers/SampleDataController.cs +++ b/Controllers/SampleDataController.cs @@ -7,7 +7,8 @@ namespace AspNetCoreVueStarter.Controllers { [Route("api/[controller]")] - public class SampleDataController : Controller + [ApiController] + public class SampleDataController : ControllerBase { private static string[] Summaries = new[] {