diff options
Diffstat (limited to 'shared/utils/logs/logs.ts')
-rw-r--r-- | shared/utils/logs/logs.ts | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/shared/utils/logs/logs.ts b/shared/utils/logs/logs.ts deleted file mode 100644 index cbb1afb93..000000000 --- a/shared/utils/logs/logs.ts +++ /dev/null | |||
@@ -1,18 +0,0 @@ | |||
1 | import { makeGetRequest } from '../requests/requests' | ||
2 | import { LogLevel } from '../../models/server/log-level.type' | ||
3 | |||
4 | function getLogs (url: string, accessToken: string, startDate: Date, endDate?: Date, level?: LogLevel) { | ||
5 | const path = '/api/v1/server/logs' | ||
6 | |||
7 | return makeGetRequest({ | ||
8 | url, | ||
9 | path, | ||
10 | token: accessToken, | ||
11 | query: { startDate, endDate, level }, | ||
12 | statusCodeExpected: 200 | ||
13 | }) | ||
14 | } | ||
15 | |||
16 | export { | ||
17 | getLogs | ||
18 | } | ||