Remove remaining code from before middleware

This commit is contained in:
FeTetra 2025-02-17 08:23:00 -05:00
commit 048f60cd9d
7 changed files with 7 additions and 31 deletions

View file

@ -38,9 +38,6 @@ public class CategoryController : ControllerBase
{
GameTokenEntity token = this.GetToken();
UserEntity? user = await this.database.UserFromGameToken(token);
if (user == null) return this.Forbid();
PaginationData pageData = this.Request.GetPaginationData();
pageData.TotalElements = CategoryHelper.Categories.Count(c => !string.IsNullOrWhiteSpace(c.Name));
@ -72,9 +69,6 @@ public class CategoryController : ControllerBase
{
GameTokenEntity token = this.GetToken();
UserEntity? user = await this.database.UserFromGameToken(token);
if (user == null) return this.Forbid();
Category? category = CategoryHelper.Categories.FirstOrDefault(c => c.Endpoint == endpointName);
if (category == null) return this.NotFound();