Added Authentication with user-auth and apikey-auth
This commit is contained in:
@@ -5,6 +5,7 @@ using Microsoft.AspNetCore.Mvc;
|
||||
using watcher_monitoring.Models;
|
||||
|
||||
using watcher_monitoring.Data;
|
||||
using watcher_monitoring.Attributes;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
|
||||
@@ -12,6 +13,7 @@ namespace watcher_monitoring.Controllers;
|
||||
|
||||
[ApiController]
|
||||
[Route("[controller]")]
|
||||
[ApiKeyAuth]
|
||||
public class APIController : Controller
|
||||
{
|
||||
private readonly WatcherDbContext _context;
|
||||
|
||||
Reference in New Issue
Block a user