summaryrefslogtreecommitdiff
path: root/Controllers/MediaController.cs
diff options
context:
space:
mode:
authorJake Mannens <jake@asger.xyz>2026-05-08 01:30:38 +1000
committerJake Mannens <jake@asger.xyz>2026-05-08 01:30:38 +1000
commita45ad8d3f8da273f80029ba6d34beb7e4ff7d7b5 (patch)
treec28beb18ef41b997a234777a134c05c01802d5af /Controllers/MediaController.cs
parent2b66d00175950d845a794422433d4a350cf87775 (diff)
v0.14av0.14a
Diffstat (limited to 'Controllers/MediaController.cs')
-rw-r--r--Controllers/MediaController.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/Controllers/MediaController.cs b/Controllers/MediaController.cs
index 96ecb44..6a9e1fc 100644
--- a/Controllers/MediaController.cs
+++ b/Controllers/MediaController.cs
@@ -1,12 +1,14 @@
using HyperBooru.ApiModels;
using HyperBooru.Services;
using HyperBooru.Util;
+using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.Mvc;
using Microsoft.EntityFrameworkCore;
namespace HyperBooru.Controllers;
[ApiController]
+[Authorize]
[Route("/media")]
public class MediaController : Controller {
private IHttpContextAccessor httpContextAccessor;