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"
|
checksum = "68354c5c6bd36d73ff3feceb05efa59b6acb7626617f4962be322a825e61f79a"
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "morethantext"
|
name = "morethantext_web"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-graphql",
|
"async-graphql",
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "morethantext"
|
name = "morethantext_web"
|
||||||
version = "0.1.0"
|
version = "0.1.0"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
|
@ -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]
|
||||||
|
Loading…
Reference in New Issue
Block a user