angel_file_service 2.0.1 angel_file_service: ^2.0.1 copied to clipboard
Angel service that persists data to a file on disk.
import 'package:angel_file_service/angel_file_service.dart';
import 'package:angel_framework/angel_framework.dart';
import 'package:file/local.dart';
configureServer(Angel app) async {
// Just like a normal service
app.use(
'/api/todos',
new JsonFileService(const LocalFileSystem().file('todos_db.json')),
);
}