This commit is contained in:
2021-01-06 19:29:11 +01:00
parent 3a6d50b67c
commit 422535be85
13 changed files with 461 additions and 226 deletions
+2 -1
View File
@@ -1,6 +1,7 @@
using Microsoft.AspNetCore.Mvc;
using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using zero.Core.Api;
using zero.Core.Entities;
using zero.Core.Utils;
@@ -18,7 +19,7 @@ namespace zero.Web.Controllers
}
public IList<ModuleType> GetModuleTypes([FromQuery] string[] tags = default) => Api.GetModuleTypes(tags);
public async Task<IList<ModuleType>> GetModuleTypes([FromQuery] string[] tags = default, [FromQuery] string pageId = default) => await Api.GetModuleTypes(tags, pageId);
public ModuleType GetModuleType([FromQuery] string alias) => Api.GetModuleType(alias);