All API endpoints now use Arrays instead of Lists

This commit is contained in:
2025-06-25 18:38:37 -07:00
parent f151a48f0a
commit cf90241944
9 changed files with 34 additions and 33 deletions
@@ -25,7 +25,7 @@ namespace MistoxWebsite.Server.Entities {
public string Name { get; set; } = "";
public string Description { get; set; } = "";
public int CurShowingIMG = 0;
public List<string> Images { get; set; } = new List<string>();
public string[] Images { get; set; } = new string[0];
public int Cost { get; set; }
public string URL { get; set; } = "";
}
@@ -3,9 +3,9 @@ namespace MistoxWebsite.Server.Entities {
public class PageLoadObject {
public Account? user { get; set; }
public AccountClaims? claims { get; set; }
public List<Receipt>? receipts { get; set; }
public List<Product>? products { get; set; }
public List<Cart>? Cart { get; set; }
public Receipt[]? receipts { get; set; }
public Product[]? products { get; set; }
public Cart[]? Cart { get; set; }
}
public class AccountClaims {