feat(sleeve): /sleeve/favorite accept-only (persistence deferred)

This commit is contained in:
gamer147
2026-06-12 23:22:25 -04:00
parent f879c05dca
commit c870b95be9
3 changed files with 72 additions and 0 deletions

View File

@@ -169,6 +169,16 @@ public class SleeveController : SVSimController
.ToList();
}
[HttpPost("favorite")]
public ActionResult<EmptyResponse> Favorite([FromBody] SleeveFavoriteRequest _)
{
if (!TryGetViewerId(out long __)) return Unauthorized();
// Accept-and-ack. Persisting per-viewer cosmetic favorites is deferred until
// a viewer-favorites schema lands (would also serve /emblem/favorite + /degree/favorite
// via the shared Wizard/FavoriteTask.cs Kind enum). Same pattern as ConfigController.
return new EmptyResponse();
}
/// <summary>
/// A product is "purchased" once the viewer owns at least one of its sleeve-typed reward
/// grants. Emblem/other grants aren't load-bearing for this check — a viewer who somehow