diff --git a/EnvelopeGenerator.Web/Controllers/EnvelopeKeyRedirController.cs b/EnvelopeGenerator.Web/Controllers/EnvelopeKeyRedirController.cs new file mode 100644 index 00000000..d3816acc --- /dev/null +++ b/EnvelopeGenerator.Web/Controllers/EnvelopeKeyRedirController.cs @@ -0,0 +1,13 @@ +using Microsoft.AspNetCore.Mvc; + +namespace EnvelopeGenerator.Web.Controllers; + +[Route("EnvelopeKey")] +public class EnvelopeKeyRedirController : Controller +{ + /// + /// Redirects /EnvelopeKey/{*path} -> /Envelope/{*path} + /// + [HttpGet("{*path}")] + public IActionResult RedirectToEnvelope(string path) => Redirect($"/Envelope/{path}"); +} \ No newline at end of file