mirror of
https://github.com/samnyan/aqua-viewer.git
synced 2026-03-21 17:24:53 -05:00
[API] Change endpoint url to v0.0.8
This commit is contained in:
parent
9344db405d
commit
84d905beff
|
|
@ -30,14 +30,14 @@ export class DivaContestComponent implements OnInit {
|
|||
}
|
||||
|
||||
load() {
|
||||
this.api.get('api/game/diva/manage/contest').subscribe(
|
||||
this.api.get('api/manage/diva/contest').subscribe(
|
||||
data => this.contests = data,
|
||||
error => this.messageService.notice(error)
|
||||
);
|
||||
}
|
||||
|
||||
delete(id) {
|
||||
this.api.delete('api/game/diva/manage/contest/' + id).subscribe(
|
||||
this.api.delete('api/manage/diva/contest/' + id).subscribe(
|
||||
() => {
|
||||
this.messageService.notice('OK');
|
||||
this.load();
|
||||
|
|
|
|||
|
|
@ -30,14 +30,14 @@ export class DivaFestaComponent implements OnInit {
|
|||
}
|
||||
|
||||
load() {
|
||||
this.api.get('api/game/diva/manage/festa').subscribe(
|
||||
this.api.get('api/manage/diva/festa').subscribe(
|
||||
data => this.festas = data,
|
||||
error => this.messageService.notice(error)
|
||||
);
|
||||
}
|
||||
|
||||
delete(id) {
|
||||
this.api.delete('api/game/diva/manage/festa/' + id).subscribe(
|
||||
this.api.delete('api/manage/diva/festa/' + id).subscribe(
|
||||
() => {
|
||||
this.messageService.notice('OK');
|
||||
this.load();
|
||||
|
|
|
|||
|
|
@ -21,11 +21,11 @@ export class DivaNewsComponent implements OnInit {
|
|||
}
|
||||
|
||||
ngOnInit() {
|
||||
this.api.get('api/game/diva/manage/news').subscribe(
|
||||
this.api.get('api/manage/diva/news').subscribe(
|
||||
data => this.createNews(data),
|
||||
error => this.messageService.notice(error.statusText)
|
||||
);
|
||||
this.api.get('api/game/diva/manage/warning').subscribe(
|
||||
this.api.get('api/manage/diva/warning').subscribe(
|
||||
data => this.createWarning(data),
|
||||
error => this.messageService.notice(error.statusText)
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user