Oviya commited on
Commit ·
d0f7937
1
Parent(s): ec5885b
databse connectivity
Browse filesFiles changed (2)
39 unmodified lines40414239 unmodified lines# System files.DS_StoreThumbs.db39 unmodified lines4041424339 unmodified lines# System files.DS_StoreThumbs.db.vs
19 unmodified lines2021222324252627282930313219 unmodified lines})export class SignupService {// private apiUrl = 'http://localhost:5000/api/signup'; // Replace with your backend URLprivate apiUrl = 'http://localhost:5000/api'; // Replace with your backend URL//private base = environment.apiBase; // e.g., http://192.168.29.27:5000constructor(private http: HttpClient) { }signup(payload: SignupPayload): Observable<SignupResponse> {return this.http.post<SignupResponse>(`${this.apiUrl}/signup`, payload).pipe(catchError(this.handleError));}19 unmodified lines2021222324252627282930313233343536373819 unmodified lines})export class SignupService {// Exactly the same style as your other service:// hf.space => Hugging Face backend; otherwise => local Flaskprivate baseUrl = location.hostname.endsWith('hf.space')? 'https://pykara-py-match-backend.hf.space/api': 'http://localhost:5000/api';// private apiUrl = 'http://localhost:5000/api/signup'; // Replace with your backend URLprivate apiUrl = 'http://localhost:5000/api'; // Replace with your backend URL//private base = environment.apiBase; // e.g., http://192.168.29.27:5000constructor(private http: HttpClient) { }signup(payload: SignupPayload): Observable<SignupResponse> {return this.http.post<SignupResponse>(`${this.baseUrl}/signup`, payload).pipe(catchError(this.handleError));}
.gitignore+1
src/app/auth/sign-up/sign-up.service.ts+7-1