Display list of links
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user