forked from OpenServer/OpenAuth_views
		
	Making baseURL neutral
This commit is contained in:
		
							
								
								
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										1
									
								
								.gitignore
									
									
									
									
										vendored
									
									
								
							| @ -1,7 +1,6 @@ | ||||
| .DS_Store | ||||
| node_modules | ||||
| public/bundle.* | ||||
| package-lock.json | ||||
| yarn.lock | ||||
| .rpt2_cache | ||||
| build/ | ||||
|  | ||||
							
								
								
									
										2341
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
							
						
						
									
										2341
									
								
								package-lock.json
									
									
									
										generated
									
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							| @ -1,7 +1,8 @@ | ||||
| import { getCookie } from "./cookie"; | ||||
|  | ||||
| // const baseURL = "https://auth.stamm.me"; | ||||
| const baseURL = "http://localhost:3000"; | ||||
| // const baseURL = "http://localhost:3000"; | ||||
| const baseURL = ""; | ||||
|  | ||||
| export default async function request(endpoint: string, parameters: { [key: string]: string } = {}, method: "GET" | "POST" | "DELETE" | "PUT" = "GET", body?: any, authInParam = false) { | ||||
|    let pairs = []; | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Fabian Stamm
					Fabian Stamm