mirror of
https://github.com/blackboxprogramming/blackroad.io.git
synced 2026-03-17 23:34:04 -05:00
Fix API endpoint - use core.blackroad.systems instead of api.blackroad.io
api.blackroad.io is the existing agent/ledger API core.blackroad.systems will be our new FastAPI backend Frontend will work on localhost:8000 for local development
This commit is contained in:
@@ -8,7 +8,7 @@ class BlackRoadAPI {
|
|||||||
// API configuration
|
// API configuration
|
||||||
this.API_BASE = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1'
|
this.API_BASE = window.location.hostname === 'localhost' || window.location.hostname === '127.0.0.1'
|
||||||
? 'http://localhost:8000'
|
? 'http://localhost:8000'
|
||||||
: 'https://api.blackroad.io'; // We'll set up CNAME for this
|
: 'https://core.blackroad.systems'; // Core backend API (deploy backend here)
|
||||||
|
|
||||||
// Auth state
|
// Auth state
|
||||||
this.authToken = localStorage.getItem('blackroad_auth_token');
|
this.authToken = localStorage.getItem('blackroad_auth_token');
|
||||||
|
|||||||
Reference in New Issue
Block a user