18 lines
359 B
TypeScript
18 lines
359 B
TypeScript
import { Injectable } from '@angular/core';
|
|
import { HttpClient } from '@angular/common/http';
|
|
|
|
import { environment } from '../../environments/environment';
|
|
|
|
@Injectable({
|
|
providedIn: 'root',
|
|
})
|
|
export class AppService {
|
|
|
|
constructor(private http: HttpClient) {
|
|
}
|
|
|
|
apps() {
|
|
return this.http.get(environment.apiUrl + "/apps");
|
|
}
|
|
|
|
} |