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
This commit is contained in:
1 parent
0f73f69239
commit
739a1603ca
47 files changed
+952
-373
No files matched your search
@@ -23,7 +23,7 @@ namespace PrivaPub.Federation.Controllers
|
||||
const string ActivityContentType = "application/activity+json; charset=utf-8";
|
||||
|
||||
|
||||
[HttpGet, Route("/" + LocalEmojis.Path + "/{shortcode}")]
|
||||
[HttpGet, Route(ApiPaths.Emojis.GET_Get + LocalEmojis.Path + "/{shortcode}")]
|
||||
public async Task<IActionResult> Get(string shortcode, CancellationToken token)
|
||||
{
|
||||
Response.Headers.Vary = "Accept";
|
||||
|
||||
Reference in new issue
Block a user