Use a more intuitive route to this controller

This commit is contained in:
2016-09-17 03:31:49 +02:00
parent 2a9a628358
commit 953a95bd25

View File

@ -10,7 +10,7 @@ using Yavsc.Models.Billing;
namespace Yavsc.Controllers
{
[Produces("application/json")]
[Route("api/do"),Authorize()]
[Route("api/estimate"),Authorize()]
public class EstimateApiController : Controller
{
private ApplicationDbContext _context;
@ -40,7 +40,6 @@ namespace Yavsc.Controllers
return new HttpStatusCodeResult(StatusCodes.Status403Forbidden);
return Ok(_context.Estimates.Where(e=>e.OwnerId == ownerId));
}
// GET: api/Estimate/5
[HttpGet("{id}", Name = "GetEstimate")]
public IActionResult GetEstimate([FromRoute] long id)