mirror of
https://github.com/mCaptcha/mCaptcha.git
synced 2026-02-14 03:25:40 +00:00
feat: migrate pages mod to use actix_auth_middleware
This commit is contained in:
@@ -61,7 +61,7 @@ impl AdvanceEditPage {
|
||||
/// route handler that renders individual views for sitekeys
|
||||
#[my_codegen::get(
|
||||
path = "crate::PAGES.panel.sitekey.edit_advance",
|
||||
wrap = "crate::CheckLogin"
|
||||
wrap = "crate::pages::get_middleware()"
|
||||
)]
|
||||
pub async fn advance(
|
||||
path: web::Path<String>,
|
||||
@@ -123,7 +123,7 @@ impl<'a> EasyEditPage<'a> {
|
||||
/// route handler that renders individual views for sitekeys
|
||||
#[my_codegen::get(
|
||||
path = "crate::PAGES.panel.sitekey.edit_easy",
|
||||
wrap = "crate::CheckLogin"
|
||||
wrap = "crate::pages::get_middleware()"
|
||||
)]
|
||||
pub async fn easy(
|
||||
path: web::Path<String>,
|
||||
|
||||
Reference in New Issue
Block a user