mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2025-05-28 01:36:40 +00:00
mv sitekey edit to easy edit
This commit is contained in:
parent
e874d1477d
commit
fa9762200e
@ -57,7 +57,10 @@ impl IndexPage {
|
||||
}
|
||||
|
||||
/// route handler that renders individual views for sitekeys
|
||||
#[my_codegen::get(path = "crate::PAGES.panel.sitekey.edit", wrap = "crate::CheckLogin")]
|
||||
#[my_codegen::get(
|
||||
path = "crate::PAGES.panel.sitekey.edit_advance",
|
||||
wrap = "crate::CheckLogin"
|
||||
)]
|
||||
pub async fn edit_sitekey(
|
||||
path: web::Path<String>,
|
||||
data: AppData,
|
||||
@ -121,7 +124,7 @@ mod test {
|
||||
|
||||
let app = get_app!(data).await;
|
||||
|
||||
let url = format!("/sitekey/{}/edit", &key.key);
|
||||
let url = PAGES.panel.sitekey.get_edit_advance(&key.key);
|
||||
|
||||
let list_sitekey_resp = test::call_service(
|
||||
&app,
|
||||
|
Loading…
x
Reference in New Issue
Block a user