feat: migrate pages mod to use actix_auth_middleware

This commit is contained in:
realaravinth
2022-05-07 12:29:02 +05:30
parent abe494b6e5
commit b057e48d72
12 changed files with 60 additions and 13 deletions

View File

@@ -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>,