15 lines
398 B
TypeScript
15 lines
398 B
TypeScript
|
|
import { HttpClient } from '@angular/common/http';
|
||
|
|
import { Injectable } from '@angular/core';
|
||
|
|
import { Observable } from 'rxjs';
|
||
|
|
|
||
|
|
@Injectable({
|
||
|
|
providedIn: 'root',
|
||
|
|
})
|
||
|
|
export class PosChangePasswordService {
|
||
|
|
constructor(private readonly http: HttpClient) {}
|
||
|
|
|
||
|
|
changePassword(password: string): Observable<unknown> {
|
||
|
|
return this.http.put('/api/v1/pos/update-password', { password });
|
||
|
|
}
|
||
|
|
}
|