move server routes into /system

This commit is contained in:
Girish Ramakrishnan
2023-08-04 13:41:13 +05:30
parent 1264cd1dd7
commit 2cdbf4d2c5
12 changed files with 457 additions and 509 deletions

View File

@@ -36,11 +36,11 @@ export function create(origin, accessToken, type, id) {
let downloadApi = '';
if (type === 'platform') {
streamApi = '/api/v1/cloudron/logstream/box';
downloadApi = '/api/v1/cloudron/logs/box';
streamApi = '/api/v1/system/logstream/box';
downloadApi = '/api/v1/system/logs/box';
} else if (type === 'crash') {
streamApi = `/api/v1/cloudron/logstream/crash-${id}`;
downloadApi = `/api/v1/cloudron/logs/crash-${id}`;
streamApi = `/api/v1/system/logstream/crash-${id}`;
downloadApi = `/api/v1/system/logs/crash-${id}`;
} else if (type === 'app') {
streamApi = `/api/v1/apps/${id}/logstream`;
downloadApi = `/api/v1/apps/${id}/logs`;