mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
implement visitors count macro for each directory index
This commit is contained in:
parent
450bbe60f3
commit
56830be4a9
7 changed files with 35 additions and 19 deletions
|
|
@ -60,7 +60,7 @@ impl Public {
|
|||
match fs::metadata(&p) {
|
||||
Ok(t) => match (t.is_dir(), t.is_file()) {
|
||||
(true, _) => callback(match self.list(&p) {
|
||||
Ok(l) => Response::Directory(l, p == self.public_dir),
|
||||
Ok(list) => Response::Directory(query, list, p == self.public_dir),
|
||||
Err(e) => Response::InternalServerError(e.to_string()),
|
||||
}),
|
||||
(_, true) => match fs::File::open(p) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue