mirror of
https://github.com/Sea-Haven-Industries/shoc-backend.git
synced 2026-09-30 08:23:12 +00:00
Add lowercase route alias for LocationController
- services/api.js uses /api/locations (lowercase), controller was only matching /api/Location
- Add [Route("api/locations")] to support both casings
This commit is contained in:
parent
534f97d6f1
commit
5a20e55138
1 changed files with 1 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ namespace Api.SeaHavenIndustries.Controllers
|
|||
[Authorize]
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
[Route("api/locations")]
|
||||
public class LocationController : Controller
|
||||
{
|
||||
private readonly ApplicationDbContext _db;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue