mirror of
https://github.com/CannedNet/CannedNet.git
synced 2026-10-25 15:09:23 -07:00
require auth for uploading
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using CannedNet.Services.Infrastructure;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace CannedNet.Services.Controllers;
|
||||
@@ -29,6 +30,7 @@ public class CDNController
|
||||
}
|
||||
|
||||
[HttpPost("upload")]
|
||||
[Authorize]
|
||||
public async Task<IResult> Upload(IFormFile file)
|
||||
{
|
||||
try
|
||||
|
||||
Reference in New Issue
Block a user