Making baseURL neutral
This commit is contained in:
parent
261642779f
commit
03a7f76b43
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,7 +1,6 @@
|
|||||||
.DS_Store
|
.DS_Store
|
||||||
node_modules
|
node_modules
|
||||||
public/bundle.*
|
public/bundle.*
|
||||||
package-lock.json
|
|
||||||
yarn.lock
|
yarn.lock
|
||||||
.rpt2_cache
|
.rpt2_cache
|
||||||
build/
|
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";
|
import { getCookie } from "./cookie";
|
||||||
|
|
||||||
// const baseURL = "https://auth.stamm.me";
|
// 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) {
|
export default async function request(endpoint: string, parameters: { [key: string]: string } = {}, method: "GET" | "POST" | "DELETE" | "PUT" = "GET", body?: any, authInParam = false) {
|
||||||
let pairs = [];
|
let pairs = [];
|
||||||
|
Loading…
Reference in New Issue
Block a user