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

12 lines
314 B
C#
Raw Normal View History

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
{
[ApiController, Route("users")]
2023-02-18 08:52:17 +01:00
public class UsersController : ControllerBase
{
[HttpGet, Route("{actor}")]
public IActionResult GetActor(string actor) =>
RedirectPermanent($"/peasants/{Uri.EscapeDataString(actor)}");
2023-02-18 08:52:17 +01:00
}
}