feat(emblem): /emblem/favorite accept-only (persistence deferred)
This commit is contained in:
@@ -3,6 +3,7 @@ using Microsoft.EntityFrameworkCore;
|
||||
using SVSim.Database;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Common;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Requests.Emblem;
|
||||
using SVSim.EmulatedEntrypoint.Models.Dtos.Responses.Emblem;
|
||||
|
||||
namespace SVSim.EmulatedEntrypoint.Controllers;
|
||||
@@ -36,4 +37,14 @@ public class EmblemController : SVSimController
|
||||
.ToList(),
|
||||
};
|
||||
}
|
||||
|
||||
[HttpPost("favorite")]
|
||||
public ActionResult<EmptyResponse> Favorite([FromBody] EmblemFavoriteRequest _)
|
||||
{
|
||||
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 + /degree/favorite
|
||||
// via the shared Wizard/FavoriteTask.cs Kind enum).
|
||||
return new EmptyResponse();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user