2023-02-18 08:52:17 +01:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
2023-02-19 00:43:43 +01:00
|
|
|
namespace PrivaPub.Controllers.ServerToServer
|
2023-02-18 08:52:17 +01:00
|
|
|
{
|
2026-10-01 08:05:56 +02:00
|
|
|
[ApiController, Route("users")]
|
2023-02-18 08:52:17 +01:00
|
|
|
public class UsersController : ControllerBase
|
|
|
|
|
{
|
|
|
|
|
[HttpGet, Route("{actor}")]
|
2026-10-01 08:05:56 +02:00
|
|
|
public IActionResult GetActor(string actor) =>
|
|
|
|
|
RedirectPermanent($"/peasants/{Uri.EscapeDataString(actor)}");
|
2023-02-18 08:52:17 +01:00
|
|
|
}
|
|
|
|
|
}
|