Modifying endpoint routes to make more sense
This commit is contained in:
@@ -6,7 +6,7 @@ using WD7UVN_HFT_2023241.Models;
|
||||
namespace WD7UVN_HFT_2023241.Endpoint
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/database")]
|
||||
[Route("api/Customer")]
|
||||
public class CustomerController : ControllerBase
|
||||
{
|
||||
public ILogicServices LogicServices { get; set; }
|
||||
|
||||
@@ -6,7 +6,7 @@ using WD7UVN_HFT_2023241.Models;
|
||||
namespace WD7UVN_HFT_2023241.Endpoint
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/database")]
|
||||
[Route("api/Employee")]
|
||||
public class EmployeeController : ControllerBase
|
||||
{
|
||||
public ILogicServices LogicServices { get; set; }
|
||||
@@ -22,6 +22,12 @@ namespace WD7UVN_HFT_2023241.Endpoint
|
||||
return LogicServices.GetSubordinates(id);
|
||||
}
|
||||
|
||||
[HttpGet("WhoWorksInMaintainerTeam/{id}")]
|
||||
public IQueryable<Employee> WhoWorksInMaintainerTeam(int id)
|
||||
{
|
||||
return LogicServices.WhoWorksInMaintainerTeam(id);
|
||||
}
|
||||
|
||||
[HttpGet()]
|
||||
public IActionResult ReadAllEmployees()
|
||||
{
|
||||
|
||||
@@ -6,7 +6,7 @@ using WD7UVN_HFT_2023241.Models;
|
||||
namespace WD7UVN_HFT_2023241.Endpoint
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/database")]
|
||||
[Route("api/MaintainerTeam")]
|
||||
public class MaintainerTeamController : ControllerBase
|
||||
{
|
||||
public ILogicServices LogicServices { get; set; }
|
||||
|
||||
@@ -6,7 +6,7 @@ using WD7UVN_HFT_2023241.Models;
|
||||
namespace WD7UVN_HFT_2023241.Endpoint
|
||||
{
|
||||
[ApiController]
|
||||
[Route("api/database")]
|
||||
[Route("api/Service")]
|
||||
public class ServiceController : ControllerBase
|
||||
{
|
||||
public ILogicServices LogicServices { get; set; }
|
||||
|
||||
Reference in New Issue
Block a user