Moved database into a module.

This commit is contained in:
Jeff Baskin 2022-07-05 17:29:10 -04:00
parent fbc83d827b
commit e19c4c6c48
3 changed files with 4 additions and 3 deletions

2
Cargo.lock generated
View File

@ -1254,7 +1254,7 @@ source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a" checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
[[package]] [[package]]
name = "morethantext" name = "morethantext_web"
version = "0.1.0" version = "0.1.0"
dependencies = [ dependencies = [
"async-graphql", "async-graphql",

View File

@ -1,5 +1,5 @@
[package] [package]
name = "morethantext" name = "morethantext_web"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"

View File

@ -1,12 +1,13 @@
use morethantext::Database;
use tide::{ use tide::{
http::StatusCode, http::StatusCode,
sessions::{MemoryStore, SessionMiddleware}, sessions::{MemoryStore, SessionMiddleware},
Request, Response, Request, Response,
}; };
mod database;
mod settings; mod settings;
use database::Database;
use settings::Settings; use settings::Settings;
#[async_std::main] #[async_std::main]