aboutsummaryrefslogtreecommitdiff
path: root/src/app/rest-apis/rest-apis.component.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/app/rest-apis/rest-apis.component.ts')
-rw-r--r--src/app/rest-apis/rest-apis.component.ts15
1 files changed, 7 insertions, 8 deletions
diff --git a/src/app/rest-apis/rest-apis.component.ts b/src/app/rest-apis/rest-apis.component.ts
index 8c95b23..72ff3bf 100644
--- a/src/app/rest-apis/rest-apis.component.ts
+++ b/src/app/rest-apis/rest-apis.component.ts
@@ -11,14 +11,14 @@
11 WITHOUT ANY WARRANTY; without even the implied warranty of 11 WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Affero General Public License for more details. 13 Affero General Public License for more details.
14 14
15 You should have received a copy of the GNU Affero General Public License 15 You should have received a copy of the GNU Affero General Public License
16 along with this program. If not, see <http://www.gnu.org/licenses/>. 16 along with this program. If not, see <http://www.gnu.org/licenses/>.
17 */ 17 */
18/** 18/**
19 * @author Philippe Buschmann 19 * @author Philippe Buschmann
20 * @file src/app/rest-apis/rest-apis.component.ts 20 * @file src/app/rest-apis/rest-apis.component.ts
21 * @brief 21 * @brief
22 * 22 *
23 */ 23 */
24 24
@@ -31,16 +31,15 @@ import { ApiService } from '../api.service';
31}) 31})
32export class RestApisComponent implements OnInit { 32export class RestApisComponent implements OnInit {
33 33
34 apis: RestAPI[]; 34 apis: RestAPI[] = [
35 {name: 'Manage Identities', desc: 'Create new identities, edit their names and delete them!', link: 'identity'},
36 {name: 'Maintain Names', desc: 'Do things!', link: 'namestore'},
37 {name: 'Handle Peers', desc: 'Do things!', link: 'peerstore'},
38 ];
35 39
36 constructor(private apiService: ApiService) { } 40 constructor(private apiService: ApiService) { }
37 41
38 getAPIs(): void {
39 this.apiService.getAPIs().subscribe(apis => this.apis = apis);
40 }
41
42 ngOnInit() { 42 ngOnInit() {
43 this.getAPIs();
44 } 43 }
45 44
46} 45}