lib: Fix category url
This commit is contained in:
@ -137,7 +137,7 @@ async fn get_active_categories(opt: &DaemonOpt, cookie: &str) -> Result<Vec<Stri
|
||||
info!("downloading category list");
|
||||
let client = reqwest::Client::new();
|
||||
let response = client
|
||||
.get(format!("{}{}", &opt.api_uri, url::SESSIONS))
|
||||
.get(format!("{}{}", &opt.api_uri, url::CATEGORIES))
|
||||
.header("Cookie", cookie)
|
||||
.send()
|
||||
.await?;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
pub mod url {
|
||||
pub const SESSIONS: &str = "/api/sessions";
|
||||
pub const CATEGORIES: &str = "/api/category";
|
||||
pub const WAIT_FOR_EVENT: &str = "/api/wait_for_event";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user