2023-07-11 10:39:37 +02:00
|
|
|
export const buildLogsEndpoints = API => ({
|
2023-07-10 13:25:24 +02:00
|
|
|
/**
|
2023-07-10 17:48:19 +02:00
|
|
|
* Gets a stream for the system logs.
|
2023-07-10 13:25:24 +02:00
|
|
|
*/
|
2023-07-10 17:48:19 +02:00
|
|
|
getSystemLogs: async () => {
|
2023-07-10 13:25:24 +02:00
|
|
|
return await API.get({
|
2023-07-11 10:39:37 +02:00
|
|
|
url: "/api/system/logs",
|
2023-07-10 13:25:24 +02:00
|
|
|
json: false,
|
|
|
|
parseResponse: async response => {
|
|
|
|
return response
|
|
|
|
},
|
|
|
|
})
|
|
|
|
},
|
|
|
|
})
|