mirror of
https://github.com/ragestudio/comty.git
synced 2025-06-09 18:44:16 +00:00
override fix & auto parse token
This commit is contained in:
parent
bf8f878bce
commit
587ddd5cd1
@ -11,9 +11,6 @@ export function API_Call(callback, endpoint, payload, options, __token) {
|
|||||||
payloadContainer.append('server_key', ycore.__server.getKey())
|
payloadContainer.append('server_key', ycore.__server.getKey())
|
||||||
|
|
||||||
const autoIncludeToken = endpoint.includes('?access_token=')
|
const autoIncludeToken = endpoint.includes('?access_token=')
|
||||||
if (autoIncludeToken) {
|
|
||||||
console.log(`Uri Endpoint parsed '?access_token= ' | Auto including token!`)
|
|
||||||
}
|
|
||||||
|
|
||||||
const defaultOptions = {
|
const defaultOptions = {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
|
Loading…
x
Reference in New Issue
Block a user