Created
May 30, 2018 18:34
-
-
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)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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