diff --git a/asg_form/Controllers/AssignmentController.cs b/asg_form/Controllers/AssignmentController.cs index 15894ec..cbac47d 100644 --- a/asg_form/Controllers/AssignmentController.cs +++ b/asg_form/Controllers/AssignmentController.cs @@ -17,7 +17,6 @@ namespace asg_form.Controllers { - [ApiController] public class TaskDB { public long id { get; set; } diff --git a/asg_form/Controllers/BlackController.cs b/asg_form/Controllers/BlackController.cs index 4882f71..135d4fc 100644 --- a/asg_form/Controllers/BlackController.cs +++ b/asg_form/Controllers/BlackController.cs @@ -41,7 +41,6 @@ namespace asg_form.Controllers public string featureId { get; set; } } - [ApiController] public class BlackController : ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/Budget/BgCountController.cs b/asg_form/Controllers/Budget/BgCountController.cs index 8a1df1f..527cae8 100644 --- a/asg_form/Controllers/Budget/BgCountController.cs +++ b/asg_form/Controllers/Budget/BgCountController.cs @@ -30,7 +30,7 @@ namespace asg_form.Controllers.Budget } - [ApiController] + public class BgCountController : ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/Champion.cs b/asg_form/Controllers/Champion.cs index 6cfcf98..7c73943 100644 --- a/asg_form/Controllers/Champion.cs +++ b/asg_form/Controllers/Champion.cs @@ -9,7 +9,7 @@ namespace asg_form.Controllers { - [ApiController] + public class Champion : ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/Com.cs b/asg_form/Controllers/Com.cs index d6f0045..1064c3f 100644 --- a/asg_form/Controllers/Com.cs +++ b/asg_form/Controllers/Com.cs @@ -17,7 +17,7 @@ namespace asg_form.Controllers { - [ApiController] + public class Com : ControllerBase { diff --git a/asg_form/Controllers/Events.cs b/asg_form/Controllers/Events.cs index da02bde..ab2e736 100644 --- a/asg_form/Controllers/Events.cs +++ b/asg_form/Controllers/Events.cs @@ -9,7 +9,7 @@ namespace asg_form.Controllers { - [ApiController] + public class Events : ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/InviteReferee.cs b/asg_form/Controllers/InviteReferee.cs index 9340ea0..abe5a13 100644 --- a/asg_form/Controllers/InviteReferee.cs +++ b/asg_form/Controllers/InviteReferee.cs @@ -19,7 +19,7 @@ namespace asg_form.Controllers { - [ApiController] + public class InviteReferee : ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/OAuthController.cs b/asg_form/Controllers/OAuthController.cs index 4e918a2..93e5549 100644 --- a/asg_form/Controllers/OAuthController.cs +++ b/asg_form/Controllers/OAuthController.cs @@ -13,7 +13,7 @@ namespace asg_form.Controllers { - [ApiController] + public class OAuthController : Controller { diff --git a/asg_form/Controllers/Store/Storehttp.cs b/asg_form/Controllers/Store/Storehttp.cs index da9ec00..3a8cb15 100644 --- a/asg_form/Controllers/Store/Storehttp.cs +++ b/asg_form/Controllers/Store/Storehttp.cs @@ -9,7 +9,7 @@ namespace asg_form.Controllers.Store { - [ApiController] + public class Storehttp : ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/chatgpt.cs b/asg_form/Controllers/chatgpt.cs index 426075a..fb96884 100644 --- a/asg_form/Controllers/chatgpt.cs +++ b/asg_form/Controllers/chatgpt.cs @@ -9,7 +9,7 @@ namespace asg_form.Controllers { - [ApiController] + public class chatgpt : ControllerBase { List allchatgpt=new List(); diff --git a/asg_form/Controllers/comform.cs b/asg_form/Controllers/comform.cs index 773f1e3..117cd2d 100644 --- a/asg_form/Controllers/comform.cs +++ b/asg_form/Controllers/comform.cs @@ -11,7 +11,7 @@ namespace asg_form.Controllers { - [ApiController] + public class comform : ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/config.cs b/asg_form/Controllers/config.cs index bbd69ec..f441c97 100644 --- a/asg_form/Controllers/config.cs +++ b/asg_form/Controllers/config.cs @@ -18,7 +18,7 @@ public class T_config -[ApiController] + [Route("api/[controller]")] public class config : ControllerBase { diff --git a/asg_form/Controllers/form_cs.cs b/asg_form/Controllers/form_cs.cs index f1c0bc1..b661c32 100644 --- a/asg_form/Controllers/form_cs.cs +++ b/asg_form/Controllers/form_cs.cs @@ -30,7 +30,6 @@ namespace asg_form.Controllers { - [ApiController] public class form_cs : ControllerBase { [Route("api/v3/form/all")] @@ -178,7 +177,6 @@ namespace asg_form.Controllers - [ApiController] // [Route("api/updateform/")] public class ύ : ControllerBase { diff --git a/asg_form/Controllers/login.cs b/asg_form/Controllers/login.cs index 5356615..a89fe12 100644 --- a/asg_form/Controllers/login.cs +++ b/asg_form/Controllers/login.cs @@ -24,7 +24,7 @@ namespace asg_form.Controllers { - [ApiController] + public class login : ControllerBase { diff --git a/asg_form/Controllers/menuAssignController.cs b/asg_form/Controllers/menuAssignController.cs index 63760fd..a3d965c 100644 --- a/asg_form/Controllers/menuAssignController.cs +++ b/asg_form/Controllers/menuAssignController.cs @@ -10,7 +10,7 @@ namespace asg_form.Controllers { - [ApiController] + public class menuAssignController : ControllerBase { public class menuDB diff --git a/asg_form/Controllers/new1.cs b/asg_form/Controllers/new1.cs index 83b5176..c9cb1f7 100644 --- a/asg_form/Controllers/new1.cs +++ b/asg_form/Controllers/new1.cs @@ -10,7 +10,7 @@ namespace asg_form.Controllers { - [ApiController] + public class 查询是否重名 : ControllerBase { private readonly Logger _logger = LogManager.GetCurrentClassLogger(); diff --git a/asg_form/Controllers/news.cs b/asg_form/Controllers/news.cs index 1bbd9b0..9119668 100644 --- a/asg_form/Controllers/news.cs +++ b/asg_form/Controllers/news.cs @@ -12,7 +12,7 @@ namespace asg_form.Controllers { - [ApiController] + public class news : ControllerBase { diff --git a/asg_form/Controllers/qqbot.cs b/asg_form/Controllers/qqbot.cs index 1f30b98..4dc7f66 100644 --- a/asg_form/Controllers/qqbot.cs +++ b/asg_form/Controllers/qqbot.cs @@ -11,7 +11,7 @@ namespace asg_form.Controllers [Route("api/[controller]/[action]")] - [ApiController] + public class qqbotr : ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/schedule.cs b/asg_form/Controllers/schedule.cs index 5dd5512..a3321f3 100644 --- a/asg_form/Controllers/schedule.cs +++ b/asg_form/Controllers/schedule.cs @@ -16,7 +16,7 @@ namespace asg_form.Controllers { - [ApiController] + public class schedule:ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/user_form.cs b/asg_form/Controllers/user_form.cs index 5ee4ff3..78aafad 100644 --- a/asg_form/Controllers/user_form.cs +++ b/asg_form/Controllers/user_form.cs @@ -10,7 +10,7 @@ namespace asg_form.Controllers { - [ApiController] + public class user_form : ControllerBase { private readonly RoleManager roleManager; diff --git a/asg_form/Controllers/webhook.cs b/asg_form/Controllers/webhook.cs index 303386b..59e6f87 100644 --- a/asg_form/Controllers/webhook.cs +++ b/asg_form/Controllers/webhook.cs @@ -17,7 +17,7 @@ namespace asg_form.Controllers - [ApiController] + public class WebsiteScreenshot { public static async Task CaptureWebsiteAsync(string url)