Skip to content

Commit

Permalink
Development API key listing in HTML
Browse files Browse the repository at this point in the history
  • Loading branch information
WingZer0o committed Mar 13, 2024
1 parent ae31fee commit 95a35ee
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
16 changes: 14 additions & 2 deletions src/app/modules/user-home/api-key/api-key.component.html
Original file line number Diff line number Diff line change
@@ -1,2 +1,14 @@
<p>Your API key is listed below</p>
<p>{{apiKey}}</p>
<div class="row">
<div class="col-12">
<p>Your Production API key is listed below</p>
<p>{{apiKey}}</p>
<br />
</div>
</div>
<div class="row">
<div class="col-12">
<p>Your Development API key is listed below</p>
<p>{{developmentKey}}</p>
<br />
</div>
</div>
2 changes: 2 additions & 0 deletions src/app/modules/user-home/api-key/api-key.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import { environment } from 'src/environments/environment';
})
export class ApiKeyComponent implements OnInit {
public apiKey: string = "";
public developmentKey: string = "";

constructor(private httpService: HttpService) { }

Expand All @@ -20,6 +21,7 @@ export class ApiKeyComponent implements OnInit {
private getApiKey(): void {
this.httpService.getAuthenticated(environment.apiUrl + "UserLogin/GetApiKey").subscribe((response: any) => {
this.apiKey = response.apiKey;
this.developmentKey = response.developmentKey;
}, (error) => {

});
Expand Down

0 comments on commit 95a35ee

Please sign in to comment.