fix: correct API endpoint paths in background-tasks.js

Change from /admin/background-tasks/tasks/* to /admin/tasks/*
to match the actual monitoring module API routes.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-02-04 21:53:12 +01:00
parent 6b588ba27c
commit fca1f1f3a4
2 changed files with 6 additions and 6 deletions

View File

@@ -68,7 +68,7 @@ function backgroundTasks() {
async loadStats() {
try {
const stats = await apiClient.get('/admin/background-tasks/tasks/stats');
const stats = await apiClient.get('/admin/tasks/stats');
this.stats = stats;
backgroundTasksLog.info('Stats loaded:', stats);
} catch (err) {
@@ -81,7 +81,7 @@ function backgroundTasks() {
this.error = null;
try {
let url = '/admin/background-tasks/tasks?limit=50';
let url = '/admin/tasks?limit=50';
if (this.filterType) {
url += `&task_type=${this.filterType}`;
}
@@ -103,7 +103,7 @@ function backgroundTasks() {
async loadRunningTasks() {
try {
const running = await apiClient.get('/admin/background-tasks/tasks/running');
const running = await apiClient.get('/admin/tasks/running');
this.runningTasks = running;
// Update elapsed time for running tasks

View File

@@ -68,7 +68,7 @@ function backgroundTasks() {
async loadStats() {
try {
const stats = await apiClient.get('/admin/background-tasks/tasks/stats');
const stats = await apiClient.get('/admin/tasks/stats');
this.stats = stats;
backgroundTasksLog.info('Stats loaded:', stats);
} catch (err) {
@@ -81,7 +81,7 @@ function backgroundTasks() {
this.error = null;
try {
let url = '/admin/background-tasks/tasks?limit=50';
let url = '/admin/tasks?limit=50';
if (this.filterType) {
url += `&task_type=${this.filterType}`;
}
@@ -103,7 +103,7 @@ function backgroundTasks() {
async loadRunningTasks() {
try {
const running = await apiClient.get('/admin/background-tasks/tasks/running');
const running = await apiClient.get('/admin/tasks/running');
this.runningTasks = running;
// Update elapsed time for running tasks