feat: implement basic devices list endpoint
This commit is contained in:
parent
22e01d10dc
commit
d6fb4573d0
5 changed files with 77 additions and 13 deletions
|
|
@ -33,7 +33,7 @@ impl ServeCommand {
|
|||
let pool = db::initialize_db(cli.data_dir.join(crate::DB_FILENAME), true).unwrap();
|
||||
|
||||
let ctx = server::Context { pool };
|
||||
let app = server::app().with_state(ctx);
|
||||
let app = server::app(ctx);
|
||||
|
||||
let rt = tokio::runtime::Builder::new_multi_thread()
|
||||
.enable_all()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue