Fixed access issues around new Authorize scheme. (#1416)
This commit is contained in:
parent
9c31f7e7c8
commit
5e273d5d9e
6 changed files with 10 additions and 4 deletions
|
|
@ -13,6 +13,7 @@ using API.Extensions;
|
|||
using API.Services;
|
||||
using API.SignalR;
|
||||
using Hangfire;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Logging;
|
||||
|
||||
|
|
@ -53,7 +54,6 @@ namespace API.Controllers
|
|||
[HttpGet("pdf")]
|
||||
public async Task<ActionResult> GetPdf(int chapterId)
|
||||
{
|
||||
|
||||
var chapter = await _cacheService.Ensure(chapterId);
|
||||
if (chapter == null) return BadRequest("There was an issue finding pdf file for reading");
|
||||
|
||||
|
|
@ -84,6 +84,7 @@ namespace API.Controllers
|
|||
/// <param name="page"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("image")]
|
||||
[AllowAnonymous]
|
||||
public async Task<ActionResult> GetImage(int chapterId, int page)
|
||||
{
|
||||
if (page < 0) page = 0;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue