Readd necessary stuff, other cleanups

This commit is contained in:
Jordan Brown
2018-11-24 18:52:59 -05:00
parent 8fa9d93b64
commit 605f00cdf0
4 changed files with 10 additions and 2 deletions
@@ -1,4 +1,5 @@
// tslint:disable:no-console
// tslint:disable:curly
// In production, we register a service worker to serve assets from local cache.
// This lets the app load faster on subsequent visits in production, and gives
@@ -0,0 +1,3 @@
{
"extends": "./tsconfig.json"
}
@@ -1,10 +1,14 @@
{
"extends": ["tslint:recommended", "tslint-react", "tslint-config-prettier"],
"extends": [ "tslint:recommended", "tslint-react", "tslint-config-prettier" ],
"linterOptions": {
"exclude": [
"config/**/*.js",
"node_modules/**/*.ts",
"coverage/lcov-report/*.js"
]
},
"rules": {
"curly": [ true, "as-needed" ],
"semicolon": [ true, "always" ]
}
}
@@ -85,7 +85,7 @@ namespace Tgstation.Server.Host.Controllers
[TgsAuthorize]
[AllowAnonymous]
[HttpGet]
public IActionResult Home(CancellationToken cancellationToken)
public IActionResult Home()
{
if (AuthenticationContext != null)
return Json(new Api.Models.ServerInformation