mirror of https://github.com/Ombi-app/Ombi
parent
cd99a876c9
commit
069b8b5632
@ -0,0 +1,5 @@
|
||||
export interface IOmbiConfigModel {
|
||||
applicationName: string;
|
||||
applicationUrl: string;
|
||||
logo: string;
|
||||
}
|
@ -0,0 +1,18 @@
|
||||
import { PlatformLocation, APP_BASE_HREF } from "@angular/common";
|
||||
import { HttpClient } from "@angular/common/http";
|
||||
import { Injectable, Inject } from "@angular/core";
|
||||
import { ICustomizationSettings } from "../../interfaces";
|
||||
import { ServiceHelpers } from "../../services";
|
||||
import { IOmbiConfigModel } from "../models/OmbiConfigModel";
|
||||
|
||||
|
||||
@Injectable()
|
||||
export class WizardService extends ServiceHelpers {
|
||||
constructor(public http: HttpClient, @Inject(APP_BASE_HREF) href:string) {
|
||||
super(http, "/api/v2/wizard/", href);
|
||||
}
|
||||
|
||||
public async downvoteAlbum(config: IOmbiConfigModel): Promise<ICustomizationSettings> {
|
||||
return await this.http.post<ICustomizationSettings>(`${this.url}config`, config, {headers: this.headers}).toPromise();
|
||||
}
|
||||
}
|
Loading…
Reference in new issue