2023-02-18 08:52:17 +01:00
|
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
|
|
2026-10-01 10:39:41 +02:00
|
|
|
namespace PrivaPub.Federation.Controllers
|
2023-02-18 08:52:17 +01:00
|
|
|
{
|
2026-11-10 01:59:20 +01:00
|
|
|
[ApiController, Route(ApiPaths.Users.Prefix)]
|
2023-02-18 08:52:17 +01:00
|
|
|
public class UsersController : ControllerBase
|
|
|
|
|
{
|
2026-11-10 01:59:20 +01:00
|
|
|
[HttpGet, Route(ApiPaths.Users.GET_M_GetActor)]
|
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
|
|
|
}
|
|
|
|
|
}
|