This commit is contained in:
Pilzinsel64
2025-04-01 06:36:24 +02:00
parent bae8539f82
commit 413669a68f

View File

@@ -20,7 +20,7 @@ public abstract class BaseItemHandler<TEntity, TUpdateMsg>(IApiServer server)
if (RegisterGetAll) if (RegisterGetAll)
server.RegisterHandler(t.GetMethod(nameof(GetAll))!.CreateDelegate(this), new(Route, "GET"), Debugger.IsAttached); server.RegisterHandler(t.GetMethod(nameof(GetAll))!.CreateDelegate(this), new(Route, "GET"), Debugger.IsAttached);
if (RegisterPost) if (RegisterPost)
server.RegisterHandler(t.GetMethod(nameof(Put))!.CreateDelegate(this), new(Route, "POST"), Debugger.IsAttached); server.RegisterHandler(t.GetMethod(nameof(Post))!.CreateDelegate(this), new(Route, "POST"), Debugger.IsAttached);
} }
public virtual ApiResult GetAll() public virtual ApiResult GetAll()