forked from ddrilling/AsbCloudServer
21 lines
588 B
C#
21 lines
588 B
C#
using AsbCloudApp.Data;
|
|
using AsbCloudApp.Services;
|
|
using Microsoft.AspNetCore.Authorization;
|
|
using Microsoft.AspNetCore.Mvc;
|
|
|
|
namespace AsbCloudWebApi.Controllers
|
|
{
|
|
[Route("api/admin/cluster")]
|
|
[ApiController]
|
|
[Authorize]
|
|
public class AdminClusterController : CrudController<ClusterDto, ICrudService<ClusterDto>>
|
|
{
|
|
public AdminClusterController(ICrudService<ClusterDto> service)
|
|
:base(service)
|
|
{
|
|
service.Includes.Add(nameof(ClusterDto.Wells));
|
|
service.Includes.Add(nameof(ClusterDto.Deposit));
|
|
}
|
|
}
|
|
}
|