2022-01-10 09:48:39 +00:00
|
|
|
use log::debug;
|
|
|
|
use rouille::Response;
|
|
|
|
|
|
|
|
use crate::templates;
|
|
|
|
|
2022-01-10 19:36:17 +00:00
|
|
|
pub fn blocks() -> Response {
|
|
|
|
debug!("received GET request for: /scuttlebutt/blocks");
|
|
|
|
|
|
|
|
Response::html(templates::scuttlebutt::peers_list("Blocks".to_string()))
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn follows() -> Response {
|
|
|
|
debug!("received GET request for: /scuttlebutt/follows");
|
|
|
|
|
|
|
|
Response::html(templates::scuttlebutt::peers_list("Follows".to_string()))
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn followers() -> Response {
|
|
|
|
debug!("received GET request for: /scuttlebutt/followers");
|
|
|
|
|
|
|
|
Response::html(templates::scuttlebutt::peers_list("Followers".to_string()))
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn friends() -> Response {
|
|
|
|
debug!("received GET request for: /scuttlebutt/friends");
|
|
|
|
|
|
|
|
Response::html(templates::scuttlebutt::peers_list("Friends".to_string()))
|
|
|
|
}
|
|
|
|
|
2022-01-10 09:48:39 +00:00
|
|
|
pub fn peers() -> Response {
|
|
|
|
debug!("received GET request for: /scuttlebutt/peers");
|
|
|
|
|
|
|
|
Response::html(templates::scuttlebutt::peers())
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn private() -> Response {
|
|
|
|
debug!("received GET request for: /scuttlebutt/private");
|
|
|
|
|
|
|
|
Response::html(templates::scuttlebutt::private())
|
|
|
|
}
|
|
|
|
|
|
|
|
pub fn profile() -> Response {
|
|
|
|
debug!("received GET request for: /scuttlebutt/profile");
|
|
|
|
|
|
|
|
Response::html(templates::scuttlebutt::profile(None, None))
|
|
|
|
}
|