mirror of
https://github.com/KRTirtho/spotube.git
synced 2025-09-12 23:45:18 +00:00
12 lines
294 B
Dart
12 lines
294 B
Dart
import 'package:flutter/foundation.dart';
|
|
import 'package:hooks_riverpod/hooks_riverpod.dart';
|
|
import 'package:shelf/shelf.dart';
|
|
|
|
final pipelineProvider = Provider((ref) {
|
|
const pipeline = Pipeline();
|
|
if (kDebugMode) {
|
|
pipeline.addMiddleware(logRequests());
|
|
}
|
|
return pipeline;
|
|
});
|