Build / Build (push) Successful in 16s
Services/Federation and Controllers/ServerToServer become
Federation/{Actors,Signing,Inbox,Outbox,Rendering,Controllers}, the first step
of the roadmap's layout. No type, route or behaviour changes.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_012CzABvBkbcFqoHdmi8b9WB
13 lines
310 B
C#
13 lines
310 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace PrivaPub.Federation.Controllers
|
|
{
|
|
[ApiController, Route("users")]
|
|
public class UsersController : ControllerBase
|
|
{
|
|
[HttpGet, Route("{actor}")]
|
|
public IActionResult GetActor(string actor) =>
|
|
RedirectPermanent($"/peasants/{Uri.EscapeDataString(actor)}");
|
|
}
|
|
}
|