feat: add EnvelopeKeyRedirController to redirect /EnvelopeKey/{*path} to /Envelope/{*path}

This commit is contained in:
tekh 2025-09-04 23:44:01 +02:00
parent 1e6c9ed40e
commit e48a86e21c

View File

@ -0,0 +1,13 @@
using Microsoft.AspNetCore.Mvc;
namespace EnvelopeGenerator.Web.Controllers;
[Route("EnvelopeKey")]
public class EnvelopeKeyRedirController : Controller
{
/// <summary>
/// Redirects /EnvelopeKey/{*path} -> /Envelope/{*path}
/// </summary>
[HttpGet("{*path}")]
public IActionResult RedirectToEnvelope(string path) => Redirect($"/Envelope/{path}");
}