[backend/masto-client] Fix return types of GetNote and PostNote
This commit is contained in:
parent
eaabe4896e
commit
13a05337cb
1 changed files with 2 additions and 2 deletions
|
@ -21,7 +21,7 @@ public class StatusController(DatabaseContext db, NoteRenderer noteRenderer, Not
|
|||
[HttpGet("{id}")]
|
||||
[Authenticate("read:statuses")]
|
||||
[Produces("application/json")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(Account))]
|
||||
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(Status))]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound, Type = typeof(MastodonErrorResponse))]
|
||||
public async Task<IActionResult> GetNote(string id) {
|
||||
var user = HttpContext.GetUser();
|
||||
|
@ -39,7 +39,7 @@ public class StatusController(DatabaseContext db, NoteRenderer noteRenderer, Not
|
|||
[HttpPost]
|
||||
[Authenticate("write:statuses")]
|
||||
[Produces("application/json")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(Account))]
|
||||
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(Status))]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound, Type = typeof(MastodonErrorResponse))]
|
||||
public async Task<IActionResult> PostNote([FromHybrid] StatusSchemas.PostStatusRequest request) {
|
||||
var user = HttpContext.GetUserOrFail();
|
||||
|
|
Loading…
Add table
Reference in a new issue