Display changelog from current version to latest upon clicking the update link

This commit is contained in:
adityachandelgit
2025-04-19 00:07:13 -06:00
committed by Aditya Chandel
parent b708976c1b
commit 6af3ee7019
15 changed files with 320 additions and 60 deletions
@@ -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`);
}
}