...
This commit is contained in:
@@ -6,10 +6,12 @@ using Shared.DTOs;
|
||||
using System.Xml.Linq;
|
||||
using Back.Common;
|
||||
using Back.Validations;
|
||||
using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace Back.Controllers
|
||||
{
|
||||
[Route("api/[controller]")]
|
||||
[Authorize]
|
||||
[ApiController]
|
||||
public class CODController : ControllerBase
|
||||
{
|
||||
@@ -45,6 +47,7 @@ namespace Back.Controllers
|
||||
|
||||
}
|
||||
[HttpGet("GetUnits")]
|
||||
[AllowAnonymous]
|
||||
public async Task<ActionResult<List<IdName<int>>>> GetUnits()
|
||||
{
|
||||
return Ok(await _servCOD.GetUnits());
|
||||
|
Reference in New Issue
Block a user