This commit is contained in:
@@ -14,7 +14,7 @@ namespace rockfishCore.Controllers
|
||||
{
|
||||
//### OUR ROUTE CALLED FROM ROCKFISH CLIENT ####
|
||||
[Produces("application/json")]
|
||||
[Route("rvl")]
|
||||
[Route("api/rvl")]
|
||||
[Authorize]
|
||||
public class RvlController : Controller
|
||||
{
|
||||
@@ -143,9 +143,14 @@ namespace rockfishCore.Controllers
|
||||
}
|
||||
}
|
||||
|
||||
[HttpGet]
|
||||
public ActionResult GetTest()
|
||||
{
|
||||
return Ok("hi");
|
||||
}
|
||||
|
||||
[HttpGet("list/{siteId}")]
|
||||
public async Task<IActionResult> GetList(long siteId)
|
||||
public async Task<IActionResult> GetList([FromRoute] long siteId)
|
||||
{
|
||||
return Ok(await ct.License.AsNoTracking().Where(z => z.SiteId == siteId).OrderByDescending(z => z.Id).ToListAsync());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user