Renames
This commit is contained in:
parent
6bd4157485
commit
d3536e0222
|
@ -10,7 +10,7 @@
|
|||
async function download() {
|
||||
loading = true
|
||||
try {
|
||||
await downloadStream(await API.getServerLogs())
|
||||
await downloadStream(await API.getSystemLogs())
|
||||
} finally {
|
||||
loading = false
|
||||
}
|
||||
|
|
|
@ -30,7 +30,7 @@ import { buildBackupsEndpoints } from "./backups"
|
|||
import { buildEnvironmentVariableEndpoints } from "./environmentVariables"
|
||||
import { buildEventEndpoints } from "./events"
|
||||
import { buildAuditLogsEndpoints } from "./auditLogs"
|
||||
import { buildLogsEndpoints } from "./logs"
|
||||
import { buildSystemLogsEndpoints } from "./systemLogs"
|
||||
|
||||
/**
|
||||
* Random identifier to uniquely identify a session in a tab. This is
|
||||
|
@ -278,6 +278,6 @@ export const createAPIClient = config => {
|
|||
...buildEnvironmentVariableEndpoints(API),
|
||||
...buildEventEndpoints(API),
|
||||
...buildAuditLogsEndpoints(API),
|
||||
...buildLogsEndpoints(API),
|
||||
...buildSystemLogsEndpoints(API),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
export const buildLogsEndpoints = API => ({
|
||||
/**
|
||||
* Gets a list of datasources.
|
||||
* Gets a stream for the system logs.
|
||||
*/
|
||||
getServerLogs: async () => {
|
||||
getSystemLogs: async () => {
|
||||
return await API.get({
|
||||
url: "/api/global/system/logs",
|
||||
json: false,
|
Loading…
Reference in New Issue