refactor(Tools): 删除不使用的ToolsController
This commit is contained in:
parent
9c99b76ce0
commit
bb7010e0a1
|
@ -1,23 +0,0 @@
|
|||
using Microsoft.AspNetCore.Authentication.Cookies;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace Bootstrap.Admin.Controllers
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
[AllowAnonymous]
|
||||
public class ToolsController : Controller
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public IActionResult Index()
|
||||
{
|
||||
var returnUrl = Request.Query[CookieAuthenticationDefaults.ReturnUrlParameter].ToString();
|
||||
return Redirect(returnUrl);
|
||||
}
|
||||
}
|
||||
}
|
10
README.md
10
README.md
|
@ -5,19 +5,19 @@
|
|||
---
|
||||
|
||||
##### Version & Coverage
|
||||
[](http://argo.zylweb.cn/BA/Tools/Index?ReturnUrl=https%3A%2F%2Fgitee.com%2FLongbowEnterprise%2FBootstrapAdmin%2Freleases)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/releases)
|
||||
[](https://coveralls.io/github/ArgoZhang/BootstrapAdmin)
|
||||
[](https://codecov.io/gh/argozhang/bootstrapadmin/branch/master)
|
||||
|
||||
##### Gitee
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin-9m1jm)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin-9m1jm)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin-9m1jm)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin-9m1jm/build/tests)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/issues)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/pulls)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/issues)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/pulls)
|
||||
|
||||
##### GitHub
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin/branch/dev)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin/branch/master)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin/branch/master/tests)
|
||||
|
|
|
@ -5,19 +5,19 @@
|
|||
---
|
||||
|
||||
##### Version & Coverage
|
||||
[](http://argo.zylweb.cn/BA/Tools/Index?ReturnUrl=https%3A%2F%2Fgitee.com%2FLongbowEnterprise%2FBootstrapAdmin%2Freleases)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/releases)
|
||||
[](https://coveralls.io/github/ArgoZhang/BootstrapAdmin)
|
||||
[](https://codecov.io/gh/argozhang/bootstrapadmin/branch/master)
|
||||
|
||||
##### Gitee
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin-9m1jm)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin-9m1jm)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin-9m1jm)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin-9m1jm/build/tests)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/issues)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/pulls)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/issues)
|
||||
[](https://gitee.com/LongbowEnterprise/BootstrapAdmin/pulls)
|
||||
|
||||
##### GitHub
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin/branch/dev)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin/branch/master)
|
||||
[](https://ci.appveyor.com/project/ArgoZhang/bootstrapadmin/branch/master/tests)
|
||||
|
|
|
@ -1,18 +0,0 @@
|
|||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using Xunit;
|
||||
|
||||
namespace Bootstrap.Admin.Api
|
||||
{
|
||||
public class ToolsTest : ControllerTest
|
||||
{
|
||||
public ToolsTest(BAWebHost factory) : base(factory, "Tools/Index?ReturnUrl=http://localhost") { }
|
||||
|
||||
[Fact]
|
||||
public async void Index_Ok()
|
||||
{
|
||||
var req = await Client.SendAsync(new HttpRequestMessage(HttpMethod.Get, ""));
|
||||
Assert.Equal(HttpStatusCode.OK, req.StatusCode);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue