提交
This commit is contained in:
parent
7e88d4620e
commit
0d094db7d3
|
|
@ -25,7 +25,7 @@ namespace ZR.Admin.WebApi.Controllers
|
|||
private IWebHostEnvironment WebHostEnvironment;
|
||||
private ISysFileService SysFileService;
|
||||
private readonly IStringLocalizer<SharedResource> _localizer;
|
||||
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
|
|
@ -43,7 +43,7 @@ namespace ZR.Admin.WebApi.Controllers
|
|||
SysFileService = fileService;
|
||||
OptionsSetting = options.Value;
|
||||
_localizer = stringLocalizer;
|
||||
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
@ -201,5 +201,19 @@ namespace ZR.Admin.WebApi.Controllers
|
|||
string fileName = Path.GetFileName(fullPath);
|
||||
return DownFile(fullPath, fileName);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// home
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
[Route("/config")]
|
||||
[HttpGet]
|
||||
[AllowAnonymous]
|
||||
public async Task<IActionResult> GetConfig()
|
||||
{
|
||||
var file = await SysFileService.AsQueryable().Where(x => x.ClassifyType == "watermark").FirstAsync();
|
||||
return SUCCESS(new { logo = file?.AccessUrl ?? "" });
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user