feat(tutorial): alias /tutorial/pack_info to /pack/info
Stacks a second [HttpPost("/tutorial/pack_info")] absolute route on
PackController.Info so the tutorial flow resolves to the same action
and returns the same pack_config_list as /pack/info (no filtering in v1).
Adds PackControllerTests.cs with TutorialPackInfo_returns_same_list_as_pack_info
verifying byte-identical responses from both URLs.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -14,8 +14,8 @@ using SVSim.EmulatedEntrypoint.Services;
|
||||
namespace SVSim.EmulatedEntrypoint.Controllers;
|
||||
|
||||
/// <summary>
|
||||
/// /pack/* — card-pack shop catalog and pack opening. Tutorial aliases (/tutorial/pack_info,
|
||||
/// /tutorial/pack_open) are out of scope for v1.
|
||||
/// /pack/* — card-pack shop catalog and pack opening. /tutorial/pack_info is aliased here.
|
||||
/// /tutorial/pack_open is out of scope for v1.
|
||||
/// </summary>
|
||||
[Route("pack")]
|
||||
public class PackController : SVSimController
|
||||
@@ -46,6 +46,7 @@ public class PackController : SVSimController
|
||||
}
|
||||
|
||||
[HttpPost("info")]
|
||||
[HttpPost("/tutorial/pack_info")]
|
||||
public async Task<ActionResult<PackInfoResponse>> Info(BaseRequest request)
|
||||
{
|
||||
if (!TryGetViewerId(out long viewerId)) return Unauthorized();
|
||||
|
||||
Reference in New Issue
Block a user