feat: Add [Authorize] to SlidesController
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user