blob: 1454aad71480b9d1758dc5fcc66da4a32e6b2c4e [file] [log] [blame]
import { Interceptor } from './InterceptorHandler.port';
const interceptors: { interceptors: Interceptor[] } = {
interceptors: [
{
eventName: 'ViewForumRequest',
urlRegex: /api\/ViewForum/,
intercepts: 'request',
},
{
eventName: 'ViewForumResponse',
urlRegex: /api\/ViewForum/,
intercepts: 'response',
},
{
eventName: 'CreateMessageRequest',
urlRegex: /api\/CreateMessage/,
intercepts: 'request',
},
{
eventName: 'ViewUnifiedUserResponse',
urlRegex: /api\/ViewUnifiedUser/,
intercepts: 'response',
},
{
eventName: 'ListCannedResponsesResponse',
urlRegex: /api\/ListCannedResponses/,
intercepts: 'response',
},
{
eventName: 'ViewThreadResponse',
urlRegex: /api\/ViewThread/,
intercepts: 'response',
},
],
};
export default interceptors;