Skip to content

Instantly share code, notes, and snippets.

@graphicbeacon
Created May 30, 2018 18:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save graphicbeacon/92a92f4cfab1a23e0b5f31fa9d6a2408 to your computer and use it in GitHub Desktop.
Save graphicbeacon/92a92f4cfab1a23e0b5f31fa9d6a2408 to your computer and use it in GitHub Desktop.
Sample code for "Building RESTful Web APIs with Dart, Aqueduct and PostgreSQL (Part 4)" post on Medium (5)
import 'fave_reads.dart';
import './controller/books_controller.dart';
import './utils/utils.dart'; // 👈👈👈
class FaveReadsSink extends RequestSink {
//...
//...
@override
Future willOpen() async {
await createDatabaseSchema(ManagedContext.defaultContext, config.database.isTemporary);
}
//...
}
//...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment