11 lines
342 B
Dart
11 lines
342 B
Dart
import 'package:protevus_file_service/protevus_file_service.dart';
|
|
import 'package:protevus_framework/protevus_framework.dart';
|
|
import 'package:file/local.dart';
|
|
|
|
void configureServer(Protevus app) async {
|
|
// Just like a normal service
|
|
app.use(
|
|
'/api/todos',
|
|
JsonFileService(const LocalFileSystem().file('todos_db.json')),
|
|
);
|
|
}
|