Display changelog from current version to latest upon clicking the update link
This commit is contained in:
committed by
Aditya Chandel
parent
b708976c1b
commit
6af3ee7019
@@ -8,6 +8,13 @@ export interface AppVersion {
|
||||
latest: string;
|
||||
}
|
||||
|
||||
export interface ReleaseNote {
|
||||
version: string;
|
||||
name: string;
|
||||
changelog: string;
|
||||
url: string;
|
||||
}
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
@@ -19,4 +26,8 @@ export class VersionService {
|
||||
getVersion(): Observable<AppVersion> {
|
||||
return this.http.get<AppVersion>(this.versionUrl);
|
||||
}
|
||||
|
||||
getChangelog(): Observable<ReleaseNote[]> {
|
||||
return this.http.get<ReleaseNote[]>(`${this.versionUrl}/changelog`);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user