Implemented database (untested), managed to make actix pass it to routes

This commit is contained in:
2024-03-25 23:26:56 +02:00
parent b18e193173
commit 2cb4acc604
14 changed files with 1125 additions and 19 deletions

View File

@@ -3,11 +3,17 @@ use serde::Deserialize;
#[derive(Debug, Deserialize)]
pub struct Config {
pub debug: bool,
pub webserver: ConfigWebserver
pub webserver: ConfigWebserver,
pub database: ConfigDatabase
}
#[derive(Debug, Deserialize)]
pub struct ConfigWebserver {
pub host: String,
pub port: u16,
}
#[derive(Debug, Deserialize)]
pub struct ConfigDatabase {
pub url: String,
}