Display list of links

This commit is contained in:
SinTan1729
2023-04-03 11:55:27 -05:00
parent b9d76b6734
commit a1f73c8a9d
6 changed files with 36 additions and 7 deletions

View File

@@ -14,3 +14,8 @@ fn validate_link(link: &str) -> bool {
let re = Regex::new("[a-z0-9-_]+").unwrap();
re.is_match(link)
}
pub fn getall() -> String {
let links = database::getall();
links.join("\n")
}