mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-15 01:32:55 -07:00
parent
a837868be5
commit
0000ff1ce9
1 changed files with 6 additions and 0 deletions
|
@ -274,6 +274,12 @@ namespace Ombi.Controllers
|
||||||
public async Task<IActionResult> GetThemeContent([FromQuery]string url)
|
public async Task<IActionResult> GetThemeContent([FromQuery]string url)
|
||||||
{
|
{
|
||||||
var css = await _githubApi.GetThemesRawContent(url);
|
var css = await _githubApi.GetThemesRawContent(url);
|
||||||
|
var ombiSettings = await OmbiSettings();
|
||||||
|
if (ombiSettings.BaseUrl != null)
|
||||||
|
{
|
||||||
|
int index = css.IndexOf("/api/");
|
||||||
|
css = css.Insert(index, ombiSettings.BaseUrl);
|
||||||
|
}
|
||||||
return Content(css, "text/css");
|
return Content(css, "text/css");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue