[backend/api] Add [Consumes] Attribute to the UpdateFile endpoint
This commit is contained in:
parent
86cc2986c3
commit
675ec23a3c
1 changed files with 2 additions and 0 deletions
|
@ -1,4 +1,5 @@
|
||||||
using System.Diagnostics.CodeAnalysis;
|
using System.Diagnostics.CodeAnalysis;
|
||||||
|
using System.Net.Mime;
|
||||||
using Iceshrimp.Backend.Core.Configuration;
|
using Iceshrimp.Backend.Core.Configuration;
|
||||||
using Iceshrimp.Backend.Core.Database;
|
using Iceshrimp.Backend.Core.Database;
|
||||||
using Iceshrimp.Backend.Core.Middleware;
|
using Iceshrimp.Backend.Core.Middleware;
|
||||||
|
@ -117,6 +118,7 @@ public class DriveController(
|
||||||
[HttpPatch("{id}")]
|
[HttpPatch("{id}")]
|
||||||
[Authenticate]
|
[Authenticate]
|
||||||
[Authorize]
|
[Authorize]
|
||||||
|
[Consumes(MediaTypeNames.Application.Json)]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(DriveFileResponse))]
|
[ProducesResponseType(StatusCodes.Status200OK, Type = typeof(DriveFileResponse))]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound, Type = typeof(ErrorResponse))]
|
[ProducesResponseType(StatusCodes.Status404NotFound, Type = typeof(ErrorResponse))]
|
||||||
public async Task<IActionResult> UpdateFile(string id, UpdateDriveFileRequest request)
|
public async Task<IActionResult> UpdateFile(string id, UpdateDriveFileRequest request)
|
||||||
|
|
Loading…
Add table
Reference in a new issue