refactor, security updates, cv extraction upgrades
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.EntityFrameworkCore;
|
||||
using JobTrackerApi.Data;
|
||||
using JobTrackerApi.Models;
|
||||
@@ -9,6 +10,7 @@ namespace JobTrackerApi.Controllers
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/attachments")]
|
||||
[Authorize(AuthenticationSchemes = "local")]
|
||||
public class AttachmentsController : ControllerBase
|
||||
{
|
||||
private const long MaxFileSizeBytes = 10 * 1024 * 1024; // 10 MB per file keeps local storage use predictable.
|
||||
|
||||
Reference in New Issue
Block a user