mirror of
https://github.com/Xevion/paperless-mobile.git
synced 2025-12-09 08:08:14 -06:00
WIP - more decoupling of blocs
This commit is contained in:
@@ -34,4 +34,10 @@ class AuthenticationInterceptor implements InterceptorContract {
|
||||
Future<BaseResponse> interceptResponse(
|
||||
{required BaseResponse response}) async =>
|
||||
response;
|
||||
|
||||
@override
|
||||
Future<bool> shouldInterceptRequest() async => true;
|
||||
|
||||
@override
|
||||
Future<bool> shouldInterceptResponse() async => true;
|
||||
}
|
||||
|
||||
@@ -25,4 +25,10 @@ class BaseUrlInterceptor implements InterceptorContract {
|
||||
Future<BaseResponse> interceptResponse(
|
||||
{required BaseResponse response}) async =>
|
||||
response;
|
||||
|
||||
@override
|
||||
Future<bool> shouldInterceptRequest() async => true;
|
||||
|
||||
@override
|
||||
Future<bool> shouldInterceptResponse() async => true;
|
||||
}
|
||||
|
||||
@@ -25,4 +25,10 @@ class LanguageHeaderInterceptor implements InterceptorContract {
|
||||
Future<BaseResponse> interceptResponse(
|
||||
{required BaseResponse response}) async =>
|
||||
response;
|
||||
|
||||
@override
|
||||
Future<bool> shouldInterceptRequest() async => true;
|
||||
|
||||
@override
|
||||
Future<bool> shouldInterceptResponse() async => true;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
import 'package:http/http.dart';
|
||||
import 'package:http_interceptor/http/http.dart';
|
||||
import 'package:http_interceptor/http_interceptor.dart';
|
||||
import 'package:injectable/injectable.dart';
|
||||
|
||||
const interceptedRoutes = ['thumb/'];
|
||||
@@ -33,4 +32,10 @@ class ResponseConversionInterceptor implements InterceptorContract {
|
||||
}
|
||||
return response;
|
||||
}
|
||||
|
||||
@override
|
||||
Future<bool> shouldInterceptRequest() async => true;
|
||||
|
||||
@override
|
||||
Future<bool> shouldInterceptResponse() async => true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user