mirror of
https://github.com/tgstation/tgstation-server.git
synced 2026-08-27 15:07:03 +01:00
Readd necessary stuff, other cleanups
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user