Build / Build (push) Successful in 35s
All 384 routes, the Mastodon API, the client API and the frozen federation paths, are read from one class with one nested class per controller. Their values are unchanged, checked one by one against the old literals; decePubClient keeps its own APIs class. Checked against GoToSocial in the pasture: 64 passed, 0 failed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01W4YtEJrgxG12Pc39Fai8Bd
13 lines
344 B
C#
13 lines
344 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace PrivaPub.Federation.Controllers
|
|
{
|
|
[ApiController, Route(ApiPaths.Users.Prefix)]
|
|
public class UsersController : ControllerBase
|
|
{
|
|
[HttpGet, Route(ApiPaths.Users.GET_M_GetActor)]
|
|
public IActionResult GetActor(string actor) =>
|
|
RedirectPermanent($"/peasants/{Uri.EscapeDataString(actor)}");
|
|
}
|
|
}
|