forked from OpenServer/OpenAuth_views
Making baseURL neutral
This commit is contained in:
parent
261642779f
commit
03a7f76b43
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 = [];
|
||||
|
Loading…
Reference in New Issue
Block a user