aboutsummaryrefslogtreecommitdiffstats
path: root/src/bin/main.rs
diff options
context:
space:
mode:
authorYigit Sever2022-04-11 19:01:42 +0300
committerYigit Sever2022-04-11 19:01:42 +0300
commit426e83ec6fba028692bed334803ae9d3a645cb18 (patch)
treea92c2d62f54e28493d1d3b3ddfc185c1ed5cf4a5 /src/bin/main.rs
parent04c3b4597a995d73e6925c5391bfa27d27f298b7 (diff)
downloadgradecoin-426e83ec6fba028692bed334803ae9d3a645cb18.tar.gz
gradecoin-426e83ec6fba028692bed334803ae9d3a645cb18.tar.bz2
gradecoin-426e83ec6fba028692bed334803ae9d3a645cb18.zip
[WIP] Spring cleaning
Diffstat (limited to 'src/bin/main.rs')
-rw-r--r--src/bin/main.rs15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/bin/main.rs b/src/bin/main.rs
deleted file mode 100644
index f1fa908..0000000
--- a/src/bin/main.rs
+++ /dev/null
@@ -1,15 +0,0 @@
1use gradecoin::routes::consensus_routes;
2use gradecoin::schema::create_database;
3
4#[tokio::main]
5async fn main() {
6 log4rs::init_file("log.conf.yml", Default::default()).unwrap();
7
8 let db = create_database();
9
10 let api = consensus_routes(db);
11
12 // Start the server
13 let point = ([127, 0, 0, 1], 8080);
14 warp::serve(api).run(point).await;
15}