[backend/masto-client] Remove Mastodon prefix from MastodonApiControllers

This is no longer necessary due to namespacing changes
This commit is contained in:
Laura Hausmann 2024-02-07 20:49:52 +01:00
parent 06e4a0ac9d
commit eaabe4896e
No known key found for this signature in database
GPG key ID: D044E84C5BE01605
4 changed files with 4 additions and 4 deletions

View file

@ -19,7 +19,7 @@ namespace Iceshrimp.Backend.Controllers.Mastodon;
[Authenticate]
[EnableRateLimiting("sliding")]
[Produces("application/json")]
public class MastodonAccountController(
public class AccountController(
DatabaseContext db,
UserRenderer userRenderer,
NoteRenderer noteRenderer,

View file

@ -14,7 +14,7 @@ namespace Iceshrimp.Backend.Controllers.Mastodon;
[MastodonApiController]
[EnableRateLimiting("sliding")]
[Produces("application/json")]
public class MastodonAuthController(DatabaseContext db) : Controller {
public class AuthController(DatabaseContext db) : Controller {
[HttpGet("/api/v1/apps/verify_credentials")]
[Authenticate]
[Produces("application/json")]

View file

@ -17,7 +17,7 @@ namespace Iceshrimp.Backend.Controllers.Mastodon;
[Authenticate]
[EnableRateLimiting("sliding")]
[Produces("application/json")]
public class MastodonStatusController(DatabaseContext db, NoteRenderer noteRenderer, NoteService noteSvc) : Controller {
public class StatusController(DatabaseContext db, NoteRenderer noteRenderer, NoteService noteSvc) : Controller {
[HttpGet("{id}")]
[Authenticate("read:statuses")]
[Produces("application/json")]

View file

@ -20,7 +20,7 @@ namespace Iceshrimp.Backend.Controllers.Mastodon;
[Produces("application/json")]
[ProducesResponseType(StatusCodes.Status401Unauthorized, Type = typeof(MastodonErrorResponse))]
[ProducesResponseType(StatusCodes.Status403Forbidden, Type = typeof(MastodonErrorResponse))]
public class MastodonTimelineController(DatabaseContext db, NoteRenderer noteRenderer) : Controller {
public class TimelineController(DatabaseContext db, NoteRenderer noteRenderer) : Controller {
[Authorize("read:statuses")]
[HttpGet("home")]
[Produces("application/json")]