move server routes into /system
This commit is contained in:
@@ -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`;
|
||||
|
||||
Reference in New Issue
Block a user