PlotDirector/PlotLine/Controllers/LegacyProblemSolverController.cs

16 lines
534 B
C#

using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
namespace PlotLine.Controllers;
[AllowAnonymous]
public sealed class LegacyProblemSolverController : Controller
{
// 308 keeps existing POST answers and opaque query state intact in one hop.
[Route("/writing-problems/{**path}")]
public IActionResult Move()
{
var suffix = Request.Path.Value!["/writing-problems".Length..];
return RedirectPermanentPreserveMethod("/problem-solver" + suffix + Request.QueryString.Value);
}
}