mirror of
https://github.com/simon987/task_tracker.git
synced 2025-12-10 13:44:30 +00:00
Dynamic api url
This commit is contained in:
@@ -6,7 +6,7 @@ import {Credentials} from "./models/credentials";
|
||||
@Injectable()
|
||||
export class ApiService {
|
||||
|
||||
public url: string = "http://localhost/api";
|
||||
public url: string = window.location.protocol + "//" + window.location.hostname + "/api";
|
||||
private options: {
|
||||
withCredentials: true,
|
||||
responseType: "json"
|
||||
|
||||
Reference in New Issue
Block a user