Add configuration options
This commit is contained in:
parent
5d28a2e707
commit
270fed54f0
16 changed files with 272 additions and 83 deletions
|
|
@ -1,6 +1,6 @@
|
|||
use std::{backtrace, io, panic};
|
||||
|
||||
use en::{ONSET, syntax, dev};
|
||||
use en::{ONSET, dev, formats::populate_graph, syntax};
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> io::Result<()> {
|
||||
|
|
@ -25,7 +25,8 @@ async fn main() -> io::Result<()> {
|
|||
}
|
||||
}));
|
||||
|
||||
let app = en::router::new();
|
||||
let graph = populate_graph();
|
||||
let app = en::router::new(&graph);
|
||||
|
||||
let listener =
|
||||
tokio::net::TcpListener::bind(&address).await.map_err(|e| {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue