13 lines
374 B
C#
13 lines
374 B
C#
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}");
|
|
} |