Files
SocialPub/PrivaPub/Federation/Controllers/UsersController.cs
T

12 lines
344 B
C#
Raw Normal View History

2023-02-18 08:52:17 +01:00
using Microsoft.AspNetCore.Mvc;
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)]
public IActionResult GetActor(string actor) =>
RedirectPermanent($"/peasants/{Uri.EscapeDataString(actor)}");
2023-02-18 08:52:17 +01:00
}
}