Commit 124dbc20 by kevin

Front end

parent 4e1502ec
Login - Done
Signup -Done
Home -Done
List -Done
Near by garages - Form validation pending
Profile photo validation - Pending
Import file and upload
Upload profile pic
Convert into Base64 Type
Get Profile
\ No newline at end of file
import { Injectable } from '@angular/core';
import { ToastController } from '@ionic/angular';
import {HttpClient} from '@angular/common/http';
import {map} from 'rxjs/operators'
@Injectable({
providedIn: 'root'
})
export class BackendApiService {
constructor( public toastController:ToastController) {
constructor( public toastController:ToastController,public http:HttpClient) {
}
......@@ -17,4 +19,8 @@ export class BackendApiService {
});
toast.present();
}
post_data(fnName,postData) {
var link=''
return this.http.post(link,postData).pipe(map((response:any)=> response));
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment