Start protecting the Api
This commit is contained in:
parent
070f41ac7e
commit
57adfc82a5
5 changed files with 11 additions and 4 deletions
|
|
@ -1,3 +1,4 @@
|
|||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using Yavsc.Models;
|
||||
|
|
@ -6,6 +7,7 @@ using Yavsc.Server.Helpers;
|
|||
|
||||
namespace Yavsc.Controllers
|
||||
{
|
||||
[Authorize("BlogScope")]
|
||||
[Produces("application/json")]
|
||||
[Route("api/blog")]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue