Files: added rename room api method

This commit is contained in:
Maksim Chegulov 2022-04-13 17:25:12 +03:00
parent 448e0aa72e
commit 8d4c248f2e

View File

@ -66,6 +66,14 @@ public abstract class VirtualRoomsController<T> : ApiControllerBase
return await _folderDtoHelper.GetAsync(room);
}
[Update("room/{roomId}")]
public async Task<FolderDto<T>> RenameRoomFromBodyAsync(T roomId, [FromBody] RenameRoomRequestDto inDto)
{
var room = await _fileStorageService.FolderRenameAsync(roomId, inDto.Title);
return await _folderDtoHelper.GetAsync(room);
}
[Delete("room")]
public async IAsyncEnumerable<FileOperationDto> DeleteRoomsFromBodyAsync([FromBody] DeleteRoomsRequestDto inDto)
{