edit sitekey, router pattern matching, sitekey update optimization, rm level delete and level err handling

This commit is contained in:
realaravinth
2021-07-16 17:40:52 +05:30
parent 863d22f62c
commit ea8264054a
31 changed files with 746 additions and 526 deletions

View File

@@ -16,6 +16,7 @@
*/
mod add;
mod edit;
pub mod list;
mod view;
@@ -24,6 +25,7 @@ pub mod routes {
pub list: &'static str,
pub add: &'static str,
pub view: &'static str,
pub edit: &'static str,
}
impl Sitekey {
@@ -32,6 +34,7 @@ pub mod routes {
list: "/sitekeys",
add: "/sitekeys/add",
view: "/sitekey/{key}",
edit: "/sitekey/{key}/edit",
}
}
}
@@ -41,4 +44,5 @@ pub fn services(cfg: &mut actix_web::web::ServiceConfig) {
cfg.service(add::add_sitekey);
cfg.service(list::list_sitekeys);
cfg.service(view::view_sitekey);
cfg.service(edit::edit_sitekey);
}