mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-08-14 02:26:55 -07:00
More added for the preset themes
This commit is contained in:
parent
aa998b02c0
commit
abfb873911
2 changed files with 9 additions and 3 deletions
|
@ -73,6 +73,7 @@
|
|||
<ul class="dropdown-menu">
|
||||
<li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/About']">About</a></li>
|
||||
<li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/Update']">Update</a></li>
|
||||
<li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/Jobs']">Jobs</a></li>
|
||||
<!-- <li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/Logs']">Logs (Not available)</a></li>
|
||||
<li [routerLinkActive]="['active']"><a [routerLink]="['/Settings/ScheduledJobs']">Scheduled Jobs (Not available)</a></li> -->
|
||||
</ul>
|
||||
|
|
|
@ -2,7 +2,10 @@
|
|||
using System.Collections.Generic;
|
||||
using System.Globalization;
|
||||
using System.Linq;
|
||||
using System.Net;
|
||||
using System.Net.Http;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using AutoMapper;
|
||||
using Hangfire;
|
||||
|
@ -260,11 +263,13 @@ namespace Ombi.Controllers
|
|||
/// <returns></returns>
|
||||
[HttpGet("themecontent")]
|
||||
[AllowAnonymous]
|
||||
public async Task<string> GetThemeContent([FromQuery]string url)
|
||||
public async Task<HttpResponseMessage> GetThemeContent([FromQuery]string url)
|
||||
{
|
||||
var content = await _githubApi.GetThemesRawContent(url);
|
||||
|
||||
return content;
|
||||
return new HttpResponseMessage(HttpStatusCode.OK)
|
||||
{
|
||||
Content = new StringContent(content, Encoding.UTF8, "text/css")
|
||||
};
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue