[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]
|
[Authenticate]
|
||||||
[EnableRateLimiting("sliding")]
|
[EnableRateLimiting("sliding")]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
public class MastodonAccountController(
|
public class AccountController(
|
||||||
DatabaseContext db,
|
DatabaseContext db,
|
||||||
UserRenderer userRenderer,
|
UserRenderer userRenderer,
|
||||||
NoteRenderer noteRenderer,
|
NoteRenderer noteRenderer,
|
|
@ -14,7 +14,7 @@ namespace Iceshrimp.Backend.Controllers.Mastodon;
|
||||||
[MastodonApiController]
|
[MastodonApiController]
|
||||||
[EnableRateLimiting("sliding")]
|
[EnableRateLimiting("sliding")]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
public class MastodonAuthController(DatabaseContext db) : Controller {
|
public class AuthController(DatabaseContext db) : Controller {
|
||||||
[HttpGet("/api/v1/apps/verify_credentials")]
|
[HttpGet("/api/v1/apps/verify_credentials")]
|
||||||
[Authenticate]
|
[Authenticate]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
|
@ -17,7 +17,7 @@ namespace Iceshrimp.Backend.Controllers.Mastodon;
|
||||||
[Authenticate]
|
[Authenticate]
|
||||||
[EnableRateLimiting("sliding")]
|
[EnableRateLimiting("sliding")]
|
||||||
[Produces("application/json")]
|
[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}")]
|
[HttpGet("{id}")]
|
||||||
[Authenticate("read:statuses")]
|
[Authenticate("read:statuses")]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
|
@ -20,7 +20,7 @@ namespace Iceshrimp.Backend.Controllers.Mastodon;
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
||||||
[ProducesResponseType(StatusCodes.Status401Unauthorized, Type = typeof(MastodonErrorResponse))]
|
[ProducesResponseType(StatusCodes.Status401Unauthorized, Type = typeof(MastodonErrorResponse))]
|
||||||
[ProducesResponseType(StatusCodes.Status403Forbidden, 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")]
|
[Authorize("read:statuses")]
|
||||||
[HttpGet("home")]
|
[HttpGet("home")]
|
||||||
[Produces("application/json")]
|
[Produces("application/json")]
|
Loading…
Add table
Reference in a new issue