Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import { Injectable } from '@angular/core';
- import { HttpClient } from '@angular/common/http';
- import { Subject } from 'rxjs';
- import { JwtTokenService } from './jwt-token.service';
- @Injectable({
- providedIn: 'root'
- })
- export class FileService {
- public refreshAvatar$: Subject<any> = new Subject();
- public customerSignature$: Subject<String> = new Subject();
- public representativeSignature$: Subject<String> = new Subject();
- constructor(private http: HttpClient) { }
- saveAvatar(avatar) {
- return this.http.post('/api/file/create', avatar);
- }
- deleteAvatar(avatar) {
- return this.http.post('/api/file/delete', avatar);
- }
- requestInvestmentDocument(form) {
- return this.http.post('/api/document/create', form);
- }
- getInvestmentDocument(hash) {
- return this.http.get('/api/document/' + hash);
- }
- getDashboardDocumets(count: number) {
- return this.http.get('/api/document/dashboard/' + count);
- }
- signDocument(form) {
- return this.http.post('/api/document/sign', form);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement