Allow to start the application with a PostgreSQL connection as managed state.
The configuration can be customized, with a default one reading parameters
from environment or an .env file.
Differential D1665
Provide a kernel module dereckson on Sep 6 2018, 12:44. Authored by Tags None Referenced Files
Subscribers None
Details
Allow to start the application with a PostgreSQL connection as managed state. The configuration can be customized, with a default one reading parameters This allows to start application as easily as: extern crate env_logger; extern crate limiting_factor; mod requests; use limiting_factor::kernel::DefaultApplication; use requests::*; fn main() { env_logger::init(); let routes = routes![ status, favicon, users::register, users::get_player, ]; DefaultApplication::start_application(routes); }
Diff Detail
|