mirror of
				https://github.com/simon987/task_tracker.git
				synced 2025-10-31 16:06:53 +00:00 
			
		
		
		
	Dynamic api url
This commit is contained in:
		
							parent
							
								
									397805f915
								
							
						
					
					
						commit
						00567ce72b
					
				| @ -6,6 +6,6 @@ chmod 755 -R "${TTROOT}/webroot" | |||||||
| 
 | 
 | ||||||
| screen -S tt_api -X quit | screen -S tt_api -X quit | ||||||
| echo "starting client" | echo "starting client" | ||||||
| screen -S tt_api -d -m bash -c "cd ${TTROOT} && ./tt_api" | screen -S tt_api -d -m bash -c "cd ${TTROOT} && chmod +x tt_api && ./tt_api" | ||||||
| sleep 1 | sleep 1 | ||||||
| screen -list | screen -list | ||||||
|  | |||||||
| @ -6,7 +6,7 @@ import {Credentials} from "./models/credentials"; | |||||||
| @Injectable() | @Injectable() | ||||||
| export class ApiService { | export class ApiService { | ||||||
| 
 | 
 | ||||||
|     public url: string = "http://localhost/api"; |     public url: string = window.location.protocol + "//" + window.location.hostname + "/api"; | ||||||
|     private options: { |     private options: { | ||||||
|         withCredentials: true, |         withCredentials: true, | ||||||
|         responseType: "json" |         responseType: "json" | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user