Link without creating a Base
This commit is contained in:
parent
373b3168f1
commit
98132cc00b
2 changed files with 12 additions and 8 deletions
|
|
@ -10,7 +10,7 @@ use time::OffsetDateTime;
|
|||
use crate::{
|
||||
config::Config,
|
||||
server::web::{
|
||||
base::{Base, Tab},
|
||||
base::Base,
|
||||
paths::{PathAdminQueueAdd, PathQueue},
|
||||
},
|
||||
somehow,
|
||||
|
|
@ -43,6 +43,6 @@ pub async fn post_admin_queue_add(
|
|||
.execute(&db)
|
||||
.await?;
|
||||
|
||||
let link = Base::new(config, Tab::None).link(PathQueue {});
|
||||
let link = Base::link_with_config(config, PathQueue {});
|
||||
Ok(Redirect::to(&format!("{link}")))
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue