From 54d6c9937e34066e357c3212477914ecef1370b6 Mon Sep 17 00:00:00 2001 From: tangxu <tangxu76880903> Date: 星期二, 08 十月 2024 13:02:41 +0800 Subject: [PATCH] Merge branch 'master' of http://47.103.154.90:83/r/IStation/shys/ChEqCalc.V1.3 --- 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