Add dark mode UI and update components

This commit is contained in:
Juan José Gutiérrez de Quevedo Pérez 2025-11-21 13:09:47 +01:00
parent f2817bc1f1
commit c263092c10
9 changed files with 488 additions and 87 deletions

View file

@ -15,7 +15,7 @@ class CVSProxyAPI {
* @returns {Promise} Response data
*/
async request(endpoint, options = {}) {
const url = `${this.baseURL}/v1${endpoint}`;
const url = `${this.baseURL}/api/v1${endpoint}`;
try {
const response = await fetch(url, {
@ -108,5 +108,5 @@ class CVSProxyAPI {
}
}
// Create global API instance
const api = new CVSProxyAPI();
// Create global API instance with basepath from config
const api = new CVSProxyAPI(window.APP_CONFIG?.basepath || '');