diff options
| author | Jake Mannens <jake@asger.xyz> | 2026-05-08 01:30:38 +1000 |
|---|---|---|
| committer | Jake Mannens <jake@asger.xyz> | 2026-05-08 01:30:38 +1000 |
| commit | a45ad8d3f8da273f80029ba6d34beb7e4ff7d7b5 (patch) | |
| tree | c28beb18ef41b997a234777a134c05c01802d5af /Controllers/ApiMediaController.cs | |
| parent | 2b66d00175950d845a794422433d4a350cf87775 (diff) | |
v0.14av0.14a
Diffstat (limited to 'Controllers/ApiMediaController.cs')
| -rw-r--r-- | Controllers/ApiMediaController.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Controllers/ApiMediaController.cs b/Controllers/ApiMediaController.cs index 0539b77..a324f35 100644 --- a/Controllers/ApiMediaController.cs +++ b/Controllers/ApiMediaController.cs @@ -1,5 +1,6 @@ using HyperBooru.ApiModels; using HyperBooru.Services; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; using Microsoft.EntityFrameworkCore; using System.Text.Json; @@ -7,6 +8,7 @@ using System.Text.Json; namespace HyperBooru.Controllers; [ApiController] +[Authorize] [Route("/api/media")] public class ApiMediaController : Controller { private IDbContextFactory<HBContext> dbFactory; |
