trying facades for specified APIs
This commit is contained in:
@@ -45,6 +45,13 @@ namespace zero.Debug.Controllers
|
||||
}
|
||||
|
||||
|
||||
[HttpGet]
|
||||
public async Task<IActionResult> GetTranslations([FromServices] ITranslationsApiFacade api)
|
||||
{
|
||||
return Json(await api.As<Translation>().GetAll());
|
||||
}
|
||||
|
||||
|
||||
[HttpGet]
|
||||
public IActionResult Things([FromServices] IValidator<Application> appValidator)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user