diff --git a/Controllers/SlidesController.cs b/Controllers/SlidesController.cs index fa76e97..29cf997 100644 --- a/Controllers/SlidesController.cs +++ b/Controllers/SlidesController.cs @@ -1,3 +1,4 @@ +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using NoticeBoard.Data; @@ -5,6 +6,7 @@ using NoticeBoard.Models; namespace NoticeBoard.Controllers; +[Authorize] public class SlidesController : Controller { private readonly AppDbContext _db;