using AsbCloudApp.Services; using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace AsbCloudWebApi.Controllers { [Route("api/[controller]")] [ApiController] [Authorize] public class RequerstTrackerController : ControllerBase { private readonly IRequerstTrackerService service; public RequerstTrackerController(IRequerstTrackerService service) { this.service = service; } [HttpGet] public IActionResult GetAll(int take = 512) { var result = service.GetAll(take); return Ok(result); } [HttpGet("fast")] public IActionResult GetFast(int take = 512) { var result = service.GetFast(take); return Ok(result); } [HttpGet("slow")] public IActionResult GetSlow(int take = 512) { var result = service.GetSlow(take); return Ok(result); } [HttpGet("error")] public IActionResult GetError(int take = 512) { var result = service.GetError(take); return Ok(result); } [HttpGet("users")] public IActionResult GetUsersStat(int take = 512) { var result = service.GetUsersStat(take); return Ok(result); } } }