mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
refactor setting
This commit is contained in:
parent
62394c4a82
commit
f59b59401f
@ -318,7 +318,7 @@ class APICallMixin:
|
||||
"""
|
||||
API_METHOD = 'https'
|
||||
API_URL_SETTING = None
|
||||
API_PASSWORD_SETTING = None
|
||||
API_TOKEN_SETTING = None
|
||||
|
||||
API_TOKEN = 'Bearer'
|
||||
|
||||
@ -343,7 +343,7 @@ class APICallMixin:
|
||||
@property
|
||||
def api_headers(self):
|
||||
return {
|
||||
self.API_TOKEN: self.get_globalsetting(self.API_PASSWORD_SETTING),
|
||||
self.API_TOKEN: self.get_globalsetting(self.API_TOKEN_SETTING),
|
||||
'Content-Type': 'application/json'
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user