Implemented the ability to move between volumes (reading) automatically without existing the app. (#198)

This commit is contained in:
Joseph Milazzo 2021-05-05 16:48:39 -05:00 committed by GitHub
parent 2be1630af3
commit d92e9e7602
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 77 additions and 12 deletions

View file

@ -1,4 +1,5 @@
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using API.DTOs;
using API.Entities;
@ -89,18 +90,7 @@ namespace API.Controllers
return Ok(await _unitOfWork.VolumeRepository.GetChapterDtoAsync(chapterId));
}
/// <summary>
/// Returns the next logical volume from the series.
/// </summary>
/// <param name="seriesId"></param>
/// <param name="volumeId"></param>
/// <returns>chapter id for next manga</returns>
[HttpGet("next-volume")]
public async Task<ActionResult<int>> GetNextChapter(int seriesId, int volumeId)
{
return Ok();
}
[HttpPost("update-rating")]