feat: implement basic devices list endpoint

This commit is contained in:
Jef Roosens 2025-02-23 21:04:44 +01:00
parent 22e01d10dc
commit d6fb4573d0
No known key found for this signature in database
GPG key ID: 21FD3D77D56BAF49
5 changed files with 77 additions and 13 deletions

View file

@ -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()