Made Database the mtt engine.
This commit is contained in:
@@ -4,10 +4,10 @@ use tide::{
|
||||
Request, Response,
|
||||
};
|
||||
|
||||
mod database;
|
||||
mod morethantext;
|
||||
mod settings;
|
||||
|
||||
use database::MoreThanText;
|
||||
use morethantext::MoreThanText;
|
||||
use settings::Settings;
|
||||
|
||||
#[async_std::main]
|
||||
@@ -20,7 +20,7 @@ async fn main() -> tide::Result<()> {
|
||||
}
|
||||
|
||||
async fn app_setup() -> tide::Server<MoreThanText> {
|
||||
let db = MoreThanText::new();
|
||||
let db = MoreThanText::new().await;
|
||||
let mut app = tide::with_state(db);
|
||||
app.at("/").get(home);
|
||||
app.with(
|
||||
|
||||
Reference in New Issue
Block a user