fixed image path construction
This commit is contained in:
1 parent
0a86d2bbea
commit
8f520f9a6a
9 files changed
+784
-11
No files matched your search
@@ -6,8 +6,8 @@ const csrftoken = getCookie('csrftoken')
|
||||
|
||||
document.querySelector('form#images').addEventListener('submit', async (e) => {
|
||||
e.preventDefault()
|
||||
try {
|
||||
const res = await fetch('/api/plugins/netbox_topology_views/images/save/', {
|
||||
try {
|
||||
const res = await fetch('/' + basePath + 'api/plugins/netbox_topology_views/images/save/', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify(mapping),
|
||||
headers: {
|
||||
|
||||
Reference in new issue
Block a user