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

This commit is contained in:
gamer147
2026-06-13 08:12:02 -04:00
parent 68741b2980
commit 356e58ba25
3 changed files with 64 additions and 0 deletions

View File

@@ -38,4 +38,14 @@ public class DegreeController : SVSimController
.ToList(),
};
}
[HttpPost("favorite")]
public ActionResult<EmptyResponse> Favorite([FromBody] DegreeFavoriteRequest _)
{
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 /sleeve/favorite + /emblem/favorite
// via the shared Wizard/FavoriteTask.cs Kind enum).
return new EmptyResponse();
}
}