angel_file_service 1.1.2 copy "angel_file_service: ^1.1.2" to clipboard
angel_file_service: ^1.1.2 copied to clipboard

outdated

Angel service that persists data to a file on disk.

example/main.dart

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')),
  );
}