scalability improvements
This commit is contained in:
@ -9,7 +9,6 @@ using Oqtane.Infrastructure;
|
||||
using Oqtane.Repository;
|
||||
using Oqtane.Security;
|
||||
using System.Net;
|
||||
using System.Security.Policy;
|
||||
|
||||
namespace Oqtane.Controllers
|
||||
{
|
||||
|
@ -81,5 +81,12 @@ namespace Oqtane.Controllers
|
||||
{
|
||||
await _siteService.DeleteSiteAsync(id);
|
||||
}
|
||||
|
||||
// GET api/<controller>/modules/5/6
|
||||
[HttpGet("modules/{siteId}/{pageId}")]
|
||||
public async Task<IEnumerable<Module>> GetModules(int siteId, int pageId)
|
||||
{
|
||||
return await _siteService.GetModulesAsync(siteId, pageId);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user