Skip to content

Instantly share code, notes, and snippets.

@bradhilton
Created June 20, 2016 22:26
Show Gist options
  • Save bradhilton/9013023d71a8d2fa33f12f8923cff0c1 to your computer and use it in GitHub Desktop.
Save bradhilton/9013023d71a8d2fa33f12f8923cff0c1 to your computer and use it in GitHub Desktop.
Todos
struct Todo {
let title: String
let completed: Bool
}
let storage = PostgreSqlTable<Todo>()
let app = CRUDApp<Todo>(storage: storage)()
let router = RESTAppRouter(app: app)
let server = HTTPSServer(router: router)
server.start()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment