diff options
Diffstat (limited to 'src/bin')
-rw-r--r-- | src/bin/main.rs | 15 |
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 @@ | |||
1 | use gradecoin::routes::consensus_routes; | ||
2 | use gradecoin::schema::create_database; | ||
3 | |||
4 | #[tokio::main] | ||
5 | async 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 | } | ||