From dc97e187c607119bbd2945b9a277db8da15f8dc0 Mon Sep 17 00:00:00 2001 From: duheng <2784771470@qq.com> Date: 星期三, 27 三月 2024 13:51:36 +0800 Subject: [PATCH] 重新优化接口调取数据 --- WebApi/Controllers/HomeController.cs | 36 ++++++++++++++++++++++++++++++++++++ 1 files changed, 36 insertions(+), 0 deletions(-) diff --git a/WebApi/Controllers/HomeController.cs b/WebApi/Controllers/HomeController.cs new file mode 100644 index 0000000..fd79d38 --- /dev/null +++ b/WebApi/Controllers/HomeController.cs @@ -0,0 +1,36 @@ +锘縰sing System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace IStation.WebApi.Controllers +{ + public class HomeController : Controller + { + /// <summary> + /// + /// </summary> + /// <returns></returns> + public ActionResult Index() + { + //var isUseSwagger = System.Configuration.ConfigurationManager.AppSettings["IsUseSwagger"]; + //if (!string.IsNullOrEmpty(isUseSwagger) && !Convert.ToBoolean(isUseSwagger)) + //{ + // return View(); + //} + //else + { + return Redirect("/swagger/ui/index"); + } + + } + + public ActionResult Test() + { + ViewBag.Title = "Home Page"; + + return View(); + } + } +} -- Gitblit v1.9.3