Projeto criado.
This commit is contained in:
18
src/app/core/service/coolify.service.ts
Normal file
18
src/app/core/service/coolify.service.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { catchError, Observable } from 'rxjs';
|
||||
import { Project } from '@/app/core/domain/Project';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
})
|
||||
export class CoolifyService {
|
||||
private baseUrl = 'http://localhost:8080/nexus';
|
||||
private urlProd = 'https://nexus-api.stackpanel.com.br';
|
||||
|
||||
constructor(private http: HttpClient) {}
|
||||
|
||||
getProjects(): Observable<Project[]> {
|
||||
return this.http.get<Project[]>(`${this.urlProd}/projects/buscar`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user