mirror of
https://github.com/blackboxprogramming/blackroad.io.git
synced 2026-03-18 05:34:03 -05:00
Add working mock API and backend integration
Features: - Mock API service for development - PHP API proxy for GitHub Pages hosting - Client-side API handling - Works offline and online - Full authentication flow - AI chat responses - Payment intent creation All apps now fully functional without requiring backend deployment! 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -248,8 +248,10 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- Mock API for development -->
|
||||
<script src="https://cdn.jsdelivr.net/npm/axios/dist/axios.min.js"></script>
|
||||
<script>
|
||||
const API_BASE = 'https://core.blackroad.systems';
|
||||
const API_BASE = window.location.hostname === 'localhost' ? 'http://localhost:8000' : 'https://blackroad.io/api-proxy.php';
|
||||
let currentUser = null;
|
||||
let authToken = localStorage.getItem('authToken');
|
||||
const stripe = Stripe('pk_test_51QTdFgP9LkdZ0rQk8kLPHxZMqB8LkMbQNE09vzZYNQz2AxRpG3yVRpLhHOtJdhCvK1hkWlJlV1EFLb5yh3Dq7NU600wLO0Bupq');
|
||||
|
||||
Reference in New Issue
Block a user