documentation
This commit is contained in:
parent
cb67c85040
commit
fbde0a07c6
3 changed files with 3 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
use actix_web::{get, HttpResponse, Responder};
|
use actix_web::{get, HttpResponse, Responder};
|
||||||
use serde::Serialize;
|
use serde::Serialize;
|
||||||
|
|
||||||
|
/// Response
|
||||||
#[derive(Serialize)]
|
#[derive(Serialize)]
|
||||||
struct Info {
|
struct Info {
|
||||||
unix_epoch: u32,
|
unix_epoch: u32,
|
||||||
|
|
|
@ -30,6 +30,7 @@ async fn page(config: web::Data<Config>) -> impl Responder {
|
||||||
Html(build_page(config.get_ref().to_owned()))
|
Html(build_page(config.get_ref().to_owned()))
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Contact node
|
||||||
#[derive(Clone, Debug)]
|
#[derive(Clone, Debug)]
|
||||||
struct ContactLink {
|
struct ContactLink {
|
||||||
service: String,
|
service: String,
|
||||||
|
|
|
@ -24,6 +24,7 @@ pub struct Infos {
|
||||||
pub page_kw: Option<String>,
|
pub page_kw: Option<String>,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Information on what page the user is currently
|
||||||
#[derive(Content, Debug, Default)]
|
#[derive(Content, Debug, Default)]
|
||||||
pub struct NavBar {
|
pub struct NavBar {
|
||||||
pub index: bool,
|
pub index: bool,
|
||||||
|
|
Loading…
Reference in a new issue