move over
This commit is contained in:
@@ -1,8 +1,7 @@
|
||||
// API client for address management
|
||||
|
||||
import { getAuthHeaders, getAuthHeadersSimple } from './authHeaders';
|
||||
|
||||
const API_BASE = '/api';
|
||||
import { API_BASE } from './config';
|
||||
|
||||
/**
|
||||
* Create a new blockchain address to monitor
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// API client for alert event history
|
||||
|
||||
import { getAuthHeadersSimple } from './authHeaders';
|
||||
|
||||
const API_BASE = '/api';
|
||||
import { API_BASE } from './config';
|
||||
|
||||
/**
|
||||
* Get all alert events (history)
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
// API client for alert rule management
|
||||
|
||||
import { getAuthHeaders, getAuthHeadersSimple } from './authHeaders';
|
||||
|
||||
const API_BASE = '/api';
|
||||
import { API_BASE } from './config';
|
||||
|
||||
/**
|
||||
* Alert types supported by the system
|
||||
|
||||
1
frontend/src/api/config.js
Normal file
1
frontend/src/api/config.js
Normal file
@@ -0,0 +1 @@
|
||||
export const API_BASE = import.meta.env.VITE_API_BASE || '/v1';
|
||||
@@ -1,8 +1,7 @@
|
||||
// API client for notification configuration
|
||||
|
||||
import { getAuthHeaders } from './authHeaders';
|
||||
|
||||
const API_BASE = '/api';
|
||||
import { API_BASE } from './config';
|
||||
|
||||
/**
|
||||
* Get notification configuration for current user
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
// API client for system status
|
||||
|
||||
const API_BASE = '/api';
|
||||
import { API_BASE } from './config';
|
||||
|
||||
/**
|
||||
* Get system status including latest processed block and health
|
||||
|
||||
@@ -28,7 +28,7 @@ export default function AlertForm({ onSubmit }) {
|
||||
|
||||
onSubmit({
|
||||
type,
|
||||
threshold: needsThreshold ? threshold : undefined,
|
||||
threshold: needsThreshold ? Number(threshold) : undefined,
|
||||
});
|
||||
|
||||
setThreshold("");
|
||||
|
||||
Reference in New Issue
Block a user