add new site accepts duration

This commit is contained in:
realaravinth
2021-05-04 11:07:18 +05:30
parent e83a362e75
commit 1e1ec187dc
6 changed files with 38 additions and 7 deletions

View File

@@ -34,7 +34,7 @@ pub mod routes {
impl Docs {
pub const fn new() -> Self {
Docs {
home: "/docs",
home: "/docs/",
spec: "/docs/openapi.json",
assets: "/docs/{_:.*}",
}

View File

@@ -28,6 +28,7 @@ pub struct IndexPage<'a> {
pub levels: usize,
pub form_title: &'a str,
pub form_description: &'a str,
pub form_duration: usize,
}
const COMPONENT: &str = "Add Site Key";
@@ -40,6 +41,7 @@ impl<'a> Default for IndexPage<'a> {
levels: 1,
form_description: "",
form_title: "Add Site Key",
form_duration: 30,
}
}
}