chore: Implement a fake response for testing (#202)

Co-authored-by: PartyDonut <PartyDonut@users.noreply.github.com>
This commit is contained in:
PartyDonut 2025-01-06 18:10:36 +01:00 committed by GitHub
parent 5b781cf642
commit d60fec405a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 729 additions and 27 deletions

View file

@ -14,8 +14,7 @@ part 'api_provider.g.dart';
@riverpod
class JellyApi extends _$JellyApi {
@override
JellyService build() {
return JellyService(
JellyService build() => JellyService(
ref,
JellyfinOpenApi.create(
interceptors: [
@ -23,8 +22,8 @@ class JellyApi extends _$JellyApi {
JellyResponse(ref),
HttpLoggingInterceptor(level: Level.basic),
],
));
}
),
);
}
class JellyRequest implements Interceptor {