Add dark mode UI and update components
This commit is contained in:
parent
f2817bc1f1
commit
c263092c10
9 changed files with 488 additions and 87 deletions
|
|
@ -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 || '');
|
||||
Loading…
Add table
Add a link
Reference in a new issue