Update instances.html
This commit is contained in:
@@ -474,7 +474,7 @@ async function authenticateInstance() {
|
|||||||
|
|
||||||
try {
|
try {
|
||||||
// First login to get token
|
// First login to get token
|
||||||
const loginResponse = await fetch(`${instanceUrl}/admin/login`, {
|
const loginResponse = await fetch(`${instanceUrl}/api/admin/login`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
@@ -491,7 +491,7 @@ async function authenticateInstance() {
|
|||||||
const { token } = await loginResponse.json();
|
const { token } = await loginResponse.json();
|
||||||
|
|
||||||
// Then create management API key
|
// Then create management API key
|
||||||
const keyResponse = await fetch(`${instanceUrl}/admin/management-api-key`, {
|
const keyResponse = await fetch(`${instanceUrl}/api/admin/management-api-key`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/json',
|
'Content-Type': 'application/json',
|
||||||
|
|||||||
Reference in New Issue
Block a user