feat: add EnvelopeKeyRedirController to redirect /EnvelopeKey/{*path} to /Envelope/{*path}
This commit is contained in:
parent
1e6c9ed40e
commit
e48a86e21c
@ -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}");
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user