blob: 1454aad71480b9d1758dc5fcc66da4a32e6b2c4e [file] [log] [blame]
Adrià Vilanova Martínez9c418ab2024-12-05 15:34:40 +01001import { Interceptor } from './InterceptorHandler.port';
2
3const interceptors: { interceptors: Interceptor[] } = {
4 interceptors: [
5 {
6 eventName: 'ViewForumRequest',
7 urlRegex: /api\/ViewForum/,
8 intercepts: 'request',
9 },
10 {
11 eventName: 'ViewForumResponse',
12 urlRegex: /api\/ViewForum/,
13 intercepts: 'response',
14 },
15 {
16 eventName: 'CreateMessageRequest',
17 urlRegex: /api\/CreateMessage/,
18 intercepts: 'request',
19 },
20 {
21 eventName: 'ViewUnifiedUserResponse',
22 urlRegex: /api\/ViewUnifiedUser/,
23 intercepts: 'response',
24 },
25 {
26 eventName: 'ListCannedResponsesResponse',
27 urlRegex: /api\/ListCannedResponses/,
28 intercepts: 'response',
29 },
30 {
31 eventName: 'ViewThreadResponse',
32 urlRegex: /api\/ViewThread/,
33 intercepts: 'response',
34 },
35 ],
36};
37
38export default interceptors;