Moved database into a module.
This commit is contained in:
parent
fbc83d827b
commit
e19c4c6c48
2
Cargo.lock
generated
2
Cargo.lock
generated
@ -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",
|
||||
|
@ -1,5 +1,5 @@
|
||||
[package]
|
||||
name = "morethantext"
|
||||
name = "morethantext_web"
|
||||
version = "0.1.0"
|
||||
edition = "2021"
|
||||
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user