I am getting confused how to pass interface as parameter and set to http get ,post as globally
I written all http post, get, put, delete functions globally
public get_api(path: string, Interface) {
return this.http.get<Interface>(API_ENDPOINT + path);
}
Now I want to pass interface from another .ts file
this.http_global.get_api('user',Interface).subscribe(.....=>);
Can anyone helps !!!
Thanks In advance!!!!