feat: Add [Authorize] to AdminController
This commit is contained in:
@@ -1,9 +1,11 @@
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using NoticeBoard.Data;
|
||||
|
||||
namespace NoticeBoard.Controllers;
|
||||
|
||||
[Authorize]
|
||||
public class AdminController : Controller
|
||||
{
|
||||
private readonly AppDbContext _db;
|
||||
|
||||
Reference in New Issue
Block a user