import {Injectable} from '@angular/core';
import {HttpClient} from '@angular/common/http';

@Injectable({
  providedIn: 'root'
})
export class AuthService {

  // private apiUrl = 'http://localhost:3000'; // Express 服务器的地址
  //
  // constructor(private http: HttpClient) {}
  //
  // login(username: string, password: string) {
  //   const url = `${this.apiUrl}/login`;
  //   const body = { username, password };
  //   return this.http.post(url, body);
  // }
}
