Files
SocialPub/PrivaPub/Federation/Controllers/UsersController.cs
T
thepraandClaude Opus 5.5 034b792801
Build / Build (push) Successful in 16s
Move the federation code under Federation/, namespaces only
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
2026-10-01 10:39:41 +02:00

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)}");
}
}