Add settings and constants

This commit is contained in:
Tobias Reisinger 2023-11-23 03:36:14 +01:00
parent e419923939
commit ee68405874
Signed by: serguzim
GPG key ID: 13AD60C237A28DFE
6 changed files with 26 additions and 8 deletions
emgauwa-core/src

View file

@ -23,6 +23,7 @@ async fn main() -> std::io::Result<()> {
let pool = emgauwa_lib::db::init(&settings.database).await;
log::info!("Starting server on {}:{}", settings.host, settings.port);
HttpServer::new(move || {
App::new()
.wrap(