db changes and build pipeline
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
2022-07-15 12:21:37 -04:00
parent 5337e7ccb8
commit e6d6b629db
30 changed files with 1332 additions and 132 deletions

View File

@@ -31,6 +31,19 @@ namespace WebNovelPortalAPI.Controllers
return _scrapers.FirstOrDefault(i => i.MatchesUrl(novelUrl));
}
[HttpGet]
[Route("{guid:guid}")]
public async Task<Novel?> GetNovel(Guid guid)
{
return await _novelRepository.GetNovel(guid);
}
[HttpGet]
public async Task<List<Novel>> GetNovels()
{
return (await _novelRepository.GetAllIncluded()).ToList();
}
[HttpPost]
[Route("scrapeNovel")]
public async Task<IActionResult> ScrapeNovel(ScrapeNovelRequest request)