Start protecting the Api

This commit is contained in:
Paul Schneider 2026-06-06 21:30:41 +01:00
commit 57adfc82a5
5 changed files with 11 additions and 4 deletions

View file

@ -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")]