[backend/masto-client] Remove Mastodon prefix from MastodonApiControllers
This is no longer necessary due to namespacing changes
This commit is contained in:
parent
06e4a0ac9d
commit
eaabe4896e
4 changed files with 4 additions and 4 deletions
|
@ -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,
|
|
@ -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")]
|
|
@ -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")]
|
|
@ -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")]
|
Loading…
Add table
Reference in a new issue