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