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"
[[package]]
name = "morethantext"
name = "morethantext_web"
version = "0.1.0"
dependencies = [
"async-graphql",

View File

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

View File

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